• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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: 67665
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.
 
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic