Hi,
I am trying to display image using ajax and javascript.
Heres the situation.
I have an AJAX action , which creates a png file and saves in a folder.
When the ajax action returns only then I have the png file available, so I need to display this png file on the screen now.
I cannot just set the src of
tag in the javascript as that doesn't work in FF , becoz this folder is not published on the webserver. Even if I get a way to write to a folder of webserver, it will not work since the image is only created during the ajax call, and there is not re-publish of the project on the weserver in between.
I use StreamResult from
struts as a url to display the image. but how to open that url in javascript.
thanks