Login Register

dynamically send image from server to browser

Sending image dynamically to the browser.

Hi All,
Is there any way in which I can send a dynamically generated image from the server to the browser. On thing that comes to my mind is (I am using Java on the server side). I would read an Image on the server using streams, base64encode it... and send it Via AJAX to the browser. The Browser in turn using a base64decoder will get the bytes again...

1. What NEXT? now if I have the image in the form of bytes... how do I display it on the screen?
2. Will any browser stop me from doing this?

Regards,
Yazad

Syndicate content