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
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