I'm developing an application with jquerymobile and Spring MVC. I'm getting an image in a controller as Inputstream and the next step is to pass this image to Javascript for show in a dialog with JqueryMobile.
How can I pass this java Inpustream image to javascript?
PS. The controller is called throught jquerymobile ajax so i have onSuccess
method waiting to make something with returned data from controller.