Re: A file writing dilemma....!
- From: andrew.kitchen@xxxxxxxxx
- Date: 17 Jul 2006 05:56:27 -0700
Hi Ingo,
I recon the images are best saved to disk than the database, especially
as I am using a remote shared server. If I were running this on my own
machine I might think differently. It is the backup issue and file
copying that move me towards having a file system solution, as I could
have several thousand images in a year's time.
I'll try and clarify the problem here:
I have a web application context deployed in a WAR file called
context1. This is the main application. I have configured a second
context called context2 which has a docBase outside of context1'.
Within the context1 application I have a Struts enabled JSP with a form
for submitting an image file. This form's corresponding action class,
when complete, will get the file and write it to a directory within
context2 of my chosing. I might have to create a new directory, but the
long and short of it is that it will be written to this context.
In context1's web application there will be another JSP that will
display the image, but via a servlet so that I can overlay watermarking
on the image and create a dynamic thumbnail.
I hope that makes things more clear?
Thanks in advance for your help.
Andrew
Ingo R. Homann wrote:
Hi,
I'm not sure, if I understand you correctly, but why do you not want to
store the Image in the database?
BTW: In HttpServlet, there are methods to get the directory of a
webapplication where you could store files.
Ciao,
Ingo
.
- Follow-Ups:
- Re: A file writing dilemma....!
- From: Ingo R. Homann
- Re: A file writing dilemma....!
- References:
- A file writing dilemma....!
- From: andrew . kitchen
- Re: A file writing dilemma....!
- From: Ingo R. Homann
- A file writing dilemma....!
- Prev by Date: Re: Good practise?
- Next by Date: Re: Good practise?
- Previous by thread: Re: A file writing dilemma....!
- Next by thread: Re: A file writing dilemma....!
- Index(es):
Relevant Pages
|