title: i want to retrieve images from imagepaths stored in db in jsp
body: <p>i am using jsp file and i want to retrieve images </p>
  
  <p>the problem is that i have stored the image paths and i want to retrieve images to jsp page  from that image paths </p>
  
  <p>how can be it possible?
  I am using ms-access database. </p>
  
  <pre><code>Connection con = null;
      ResultSet rst = null;
      Statement st = null;
  
      try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con=DriverManager.getConnection("jdbc:odbc:register");
              st=con.createStatement();
              rst = st.executeQuery("select * from productregistration");
                  while(rst.next())
                  {
                      %&gt;
                 &lt;img src="&lt;%=rst.getString(1)%&gt;"/&gt;
                      &lt;%
  
                  }
                 }
      catch (Exception ex) {
          ex.printStackTrace();
      }
  </code></pre>