title: Byte array to Image and show in HTML
body: <p>I saved the user image to the database in binary. I can get the data back using <code>user.getImage()</code>. How do I transform it back to a image and display it in <code>&lt;img&gt;</code> ??</p>
  
  <pre><code>&lt;%
  //getting mysql data
  User user = (User) iterator.next();
  byte[] image = user.getImage();
  %&gt;
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;td&gt;&lt;img class="img-responsive img-rounded" src=""&gt; &lt;/td&gt;
  </code></pre>