i am using jsp file and i want to retrieve images
the problem is that i have stored the image paths and i want to retrieve images to jsp page from that image paths
how can be it possible?
I am using ms-access database.
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())
{
%>
<img src="<%=rst.getString(1)%>"/>
<%
}
}
catch (Exception ex) {
ex.printStackTrace();
}
ya related path cant be get instead use the absolute path