On May 28, 2014, at 4:16 PM, Ovunc Yildirim wrote:
> Hello,
>
> application creates a picture and I need to send this created picture to client without refresh. if client rotates the picture new generated one should be send from backend and new generated image should be updated in place.
> Can I use rails live streaming for this set up? maybe encode 64 to json and send it via live stream to client?
> Any suggestions?
>
> thanks in advance
> Ovunc
>
That's certainly one way, but have you considered just pulling the new image from the client with Ajax? If the user has pushed some control to rotate the image, you could return the rotated image and the client-side JS could update the view.
Walter
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cd9a0228-8901-44b6-a23c-1a2fd1b1546d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/181FEC48-0096-4DC8-A53D-4C1BEB9A0C4E%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment