title: JSP / Activiti - How to output image from servlet to .jsp?
body: <p>I'm unfamiliar with how passing image data to a JSP file for display works. I'm using Activiti and I want to get a process diagram, and then and display it on my web page. So far I have:</p>
  
  <pre><code>InputStream is = repositoryService.getProcessDiagram(processList.get(0).getId());
  </code></pre>
  
  <p>But I don't know what you do with this <code>InputStream</code>. </p>