jsp image loading pblm


In my project, i have to show the images which are stored in database
.I stored the pictures and retrive it from database as byte array.After that i have to show the image in corresponing .....
plz give any clue for me... I used the following code to print image...

byte[] imageBytes=clas.writePic(vendorId,serviceId,classId,picturesid]);
response.setContentType("image/gif");
OutputStream o=response.getOutputStream();
o.write(imageBytes);
o.flush();
o.close();
but it show only last image and no other fields are not printed


thanks in advance
lafee
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories