I am working on my small project for school. One of the thing this application has to do is , get images uploaded by the user and show that as slide show later when some body see's what is uploaded.
Example: It can be my apartment or house images, if I want to rent it.So it has to show the images in slide show. But my question is not how to show in slide show but rather where to store the images?
I don't want to store it under my web application because It may be lost when I redeploy also need restart every time image is uploaded, I tried to save it in my hard disk but it looks like html img src "".. get resources only from the current web context or from some url like
http://www.blabla.com/images but again I don't want to have another web application for image storing only. But it looks like that is how craigslist or some other sites work.
When I view the html source , I see something like src="http://image.craigslist.com" so can you please tell me best way to do it?
Storing the image as blob in DB is also another option but user may upload 100pics so don't want to do that in DB it will affect scalability of my project.Here are the technologies I am using Strus2,
jsp,hibernate,html5 etc.