Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Photo Gallery without using Database to store images

 
Rajendiran R. prakash
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic