i want to create a photo gallery for my application with out using the Database. i just want to use my File server to store the images and render it for the Photo Gallery.
Currently, i created a folder named Gallery under the CATALINA_HOME/webapps/Gallery. I think its not a good idea to store the images inside the Tomcat Server as, the size may grow large over a period when there is lot of images stored. Please give me a suggestion to proceed on this.
You can store them anywhere you want, but if they're not accessible via URL, you'll need to write a servlet to stream them to the browser.
Rajendiran R. prakash wrote:I think its not a good idea [/b]to store the images inside the Tomcat Server as, the size may grow large over a period when there is lot of images stored.
So? The images need to be stored on the disk, what difference does it make whether they're stored under a Tomcat folder or not? They'll still use up the same amount of room.
I would agree that storing them within your web application is not a good idea -- but putting them in their own web app so that they are accesible via URL isn't going to be any problem. I do it all the time.