Why not just store the file in a database as a BLOB? Let the database
worry about where they go...

-----Original Message-----
From: Zach Moazeni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 2:16 PM
To: Tomcat Users List
Subject: Accessing Files outside of WebApp

Hello,

    In our current application I need to link to a file that resides 
outside of the webapp directory. On another application we allowed the 
users upload files and stored them in the webapp directory, which made 
deployment a royal pain. This time we are storing the files in a 
location external to Tomcat, however I need to let the users click a 
link so they can download and open the file. I'd rather not "copy over" 
the file to a tmp directory from which they download.

    In Apache there was something like <Location>, is there something 
like that in Tomcat?

Thanks for any input.
-Zach

---------------------------------------------------------------------
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]

Reply via email to