• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Creating Photo Gallery without using Database to store images

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I do some of my very best work in water. Like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic