The files are supposed to be read-only and
downloadable.

If I store files in the WEB-INF folder, then, the
folder won't be an accessible directory from html
pages. I have to read the content via streams and send
it to the browser. That would be too much overhead. 

I am already told by my superior "do not save those
files into the database".

What should I do?
--- Ivan Vasquez <[EMAIL PROTECTED]> wrote:

> Unless the tomcat server(s) has fileserver
> capabilities, you can create
> an NFS mount to a fileserver share and have your
> code create Files
> there.
> 
> Better yet (IMO), store them in the database as
> BLOBs so all your data
> lives at a single location. The decision depends on
> what use is given to
> those files (are they likely to be modified? ready
> only? etc)
> 
> -----Original Message-----
> From: Caroline Jen [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 13, 2004 11:30 AM
> To: [EMAIL PROTECTED]
> Subject: Where Is the Best Place To Store Files?
> 
> I am using the Struts to build a web application.  I
> am going to store some files (the files can be .doc,
> .txt, .pdf, .jpg, whatever) on the server; e.g.
> somewhere in my web application.
> 
> Where is the proper and best place to store files? 
> $TOMCAT\webapps\MyApplication\????
> 
> Thanks for suggestions.
> 
> 
>               
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to