Hi All,
I have a database table "productdetails",where i have id,name,price,prodimage(blob) fields.
Am displaying all the records using jsp inside a div with the help of while loop, am getting all the datas correctly except the image.
Check below code and let me know how to display the image retrieved from databse inside a img tag.
<%
rs = s.executeQuery("select * from productdetails");
while(rs.next())
{
%>
<div><%=rs.getString("id")%>
<div><%=rs.getString("name")%>
<div><%=rs.getString("price")%>
<img src="<%=rs.getString("prodimage")%>" />
}