Hi Experts,
Please Help me its very urgent.....
I stored number of images and related informations are in MS-SQL
database, datatype is "image". I want to display all the images and
related information on the jsp page.
I tried the following code, but it doesn't work properly because it
showed only one image from the database and doesn't show the price value.
ResultSet rs=st.executeQuery("select * from image_table");
while(rs.next())
{
byte barray[] = rs.getBytes(4);
String get_price=rs.getString(5);
response.setContentType("image/gif");
response.getOutputStream().write(barray);
out.println("Price in Rs. "+get_price);
}
response.getOutputStream().flush();
response.getOutputStream().close();
How can I display the all images and related information in jsp?
If anybody know the solution kindly send me the coding or suggestion
to my mail-id(<removed>).
Thanks in Advance......
V. Prasath @ Arjunan.