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.executeQu ery("select * from image_table");
while(rs.next() )
{
byte barray[] = rs.getBytes(4);
String get_price=rs.ge tString(5);
response.setCon tentType("image/gif");
response.getOut putStream().wri te(barray);
out.println("Pr ice in Rs. "+get_price );
}
response.getOut putStream().flu sh();
response.getOut putStream().clo se();
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.
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.executeQu ery("select * from image_table");
while(rs.next() )
{
byte barray[] = rs.getBytes(4);
String get_price=rs.ge tString(5);
response.setCon tentType("image/gif");
response.getOut putStream().wri te(barray);
out.println("Pr ice in Rs. "+get_price );
}
response.getOut putStream().flu sh();
response.getOut putStream().clo se();
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.
Comment