title: How to pass java Inputstream to Javascript
body: <p>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.</p>
  
  <p>How can I pass this java Inpustream image to javascript?</p>
  
  <p>PS. The controller is called throught jquerymobile ajax so i have <code>onSuccess</code> method waiting to make something with returned data from controller.</p>