Reputation: 823
I am retrieving multiple images from database (blob) and loading it to jsp using <img src="www.xyz.com?img=123">
.
All 'src' of <img>
go to servlet and get the blob image and is outputted using response.getOutputStream().write()
. Since there are some 8 to 10 images, the websphere server crashes.
Any idea?
Can we store these images (after getting from DB) in some temporary folder and the configure the temporary path in server and load these images using <img>
?
Upvotes: 0
Views: 2119
Reputation: 2050
That's look very strange if your application server crashes. Check if you close database connection, and streams like response.getOutputStream() . It's more than 10 times faster if you store images in folder, let say, configure img folder in web server like Apache, and write image to /img/image_id
Upvotes: 1