Re: Load Image From Servlet With Ajax?
Tuesday, April 25, 2006 12:50 AM
I dont think you can do that. Browser handles fetching & rendering of images with img tag. If to handle images generated by a servlet you can return the url to the image as ajax response and set that to image tag href attribute. And the browser will load it.
Or use SVG, where you can pass image data/co-ordinates as ajax response, and use them to draw on the browser.