title: How to retrieve images from database and place on JSP?
body: <p>I have a JSP page and it should get all the images from database and should to display on one table. My resultset object 'rs' is pointing to images. My code is like this:</p>
  
  <pre><code>String query = "select image from stock";
  rst = stmt.executeQuery(query);
  while(rst.next())
  &lt;%
  &lt;td&gt;&lt;img height="89" src=&lt;%rst.getString(1)%&gt;&lt;/td&gt;
  %&gt;
    }
  </code></pre>
  
  <p>I know, getString will not work for BLOB type. I was even used getBinaryStream(), but not succeed. Any idea?</p>