I'm retrieve several images from the database and trying to display them on the web.
I'm getting the gifs in an array of btyes and then
writing it to the ServletOutputStream. however,
i can only write out 1 image. trying to write out
more than 1 image either give me a socketexception
or it just simply doesn't appear.
any ideas? thanks in advance.
-
Multiple Images/ServletOutputStream question (3 messages)
- Posted by: michael key
- Posted on: October 10 2001 18:44 EDT
Threaded Messages (3)
- Multiple Images/ServletOutputStream question by Toby Hede on October 11 2001 01:37 EDT
- Multiple Images/ServletOutputStream question by Vijay kumar on October 11 2001 01:38 EDT
- Multiple Images/ServletOutputStream question by Paul Dudley on October 12 2001 15:01 EDT
-
Multiple Images/ServletOutputStream question[ Go to top ]
- Posted by: Toby Hede
- Posted on: October 11 2001 01:37 EDT
- in response to michael key
I have always ahd problems storing images in the database..it is a huge performance issue and unneccessary complicated. If you can, store the image on the filesystem and a URL reference in the database...makes life muich easier. -
Multiple Images/ServletOutputStream question[ Go to top ]
- Posted by: Vijay kumar
- Posted on: October 11 2001 01:38 EDT
- in response to michael key
well, try closing the stream after each image loads.
vijay -
Multiple Images/ServletOutputStream question[ Go to top ]
- Posted by: Paul Dudley
- Posted on: October 12 2001 15:01 EDT
- in response to michael key
What about loading the byte arrays into elements of a collection object ( HashMap, ArrayList) and then passing that to a JSP?
paul