Forums Register Login

image handling in Java

+Pie Number of slices to send: Send
Hi,
We are planning to develop a web application with image gallary. We want to publish the images in the web. The end user can customise the images and can save it. Those images will be stored in the back end and planning to publish in the web as and when the end user needs. But we feel, we may get a performance problem due to this approach. Because for each request , our request will hit the application server and intern application server is will interact with database and vise versa. So for extracting the image every time will take more time.
So is there any alternative approach for this kind of scnerio? How can we handle this situation?
Thanks in Advance,

Regards,
Kenny
[ February 23, 2004: Message edited by: kenny ]
+Pie Number of slices to send: Send
Hi kenny,
Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a first and last name to comply with the JavaRanch Naming Policy. You can change it here. Thank you for your cooperation.
+Pie Number of slices to send: Send
will you be storing the images in a DB or just the path to where the image resides on the server in the DB?
I ask because if you're simply storing the path in the DB, you may be able to do some educated-guessing / caching in order to prevent too many calls to the DB.
Scenario:
User logs in and selects to view a picture from "mars gallery". Instead of only grabbing that one image, you get the path info for ALL the images in the "mars" gallery and store the info in session. Then if the user views more images from the same gallery (which would seem pretty likely). You simply get the information from the user's session rather than making another call to the DB.
+Pie Number of slices to send: Send
We are planning to store the images in the DB. 'cas the end user can customize the image and he can again upload. So for this kind of situation, i feel storing the URL in the DB can be a good option?
Please justify....
Thanks in Advance..

Originally posted by Jessica Sant:
will you be storing the images in a DB or just the path to where the image resides on the server in the DB?
I ask because if you're simply storing the path in the DB, you may be able to do some educated-guessing / caching in order to prevent too many calls to the DB.
Scenario:
User logs in and selects to view a picture from "mars gallery". Instead of only grabbing that one image, you get the path info for ALL the images in the "mars" gallery and store the info in session. Then if the user views more images from the same gallery (which would seem pretty likely). You simply get the information from the user's session rather than making another call to the DB.

 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 996 times.
Similar Threads
Image display problem
difference between the webserver and application server
architectural help required
application server and web server difference needed
I need suggestions on the following logic i developed to generate a random string.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:34:09.