aspose file tools*
The moose likes Servlets and the fly likes Creating Photo Gallery without using Database to store images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Creating Photo Gallery without using Database to store images" Watch "Creating Photo Gallery without using Database to store images" New topic
Author

Creating Photo Gallery without using Database to store images

Rajendiran R. prakash
Greenhorn

Joined: Nov 22, 2007
Posts: 19
Hi All,

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.


Thanks in advance....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60063
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creating Photo Gallery without using Database to store images
 
Similar Threads
then I must populate javascript arrays [How this?] from PHP
Selection of datatype for storing images
PhotoGallery using Struts
how to read images from mobile photo gallery and display it in a slide show using JS
DICOM