Live streaming picture wihout refresh

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs