Re: Unable to access files outside Webapp directory in tomcat

2009-09-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Akash, On 9/2/2009 1:32 AM, asingla4 wrote: > I have my Web application installed in C:\Tomcat\webapp\ROOT. > Now, through the Web page of this application, the user uploads an image > which the application saves in C:\files folder using ImageIO class

Re: Unable to access files outside Webapp directory in tomcat

2009-09-02 Thread Michael Ludwig
asingla4 schrieb: I'm done with saving the file to C:\files but I don't know how to make it downloadable when the download button is clicked because the files folder is outside the webapp directory. Please read this thread: providing downloading functionality for a file which is on disk http:

Re: Unable to access files outside Webapp directory in tomcat

2009-09-01 Thread asingla4
Hi, I have my Web application installed in C:\Tomcat\webapp\ROOT. Now, through the Web page of this application, the user uploads an image which the application saves in C:\files folder using ImageIO class of JAVA. Now as soon as the file is uploaded, there should be a download button enabled f

Re: Unable to access files outside Webapp directory in tomcat

2009-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Akash, On 9/1/2009 1:36 PM, asingla4 wrote: > Initially, I was accessing the files using the absolute path Accessing the files with what? A fork and knife? > but this way > I'm unable to download the files through my web Page (the download image on

Re: Unable to access files outside Webapp directory in tomcat

2009-09-01 Thread asingla4
Hi, Initially, I was accessing the files using the absolute path, but this way I'm unable to download the files through my web Page (the download image on the page would require a relative path as src.) So, eventually, I haven't been able to try anything. Akash Christopher Schultz-2 wrote: >

Re: Unable to access files outside Webapp directory in tomcat

2009-08-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Akash, On 8/30/2009 12:34 PM, asingla4 wrote: > I have kept all the documents and images outside the root directory > of the application. How can I access these files in my > application[?] What have you already tried? - -chris -BEGIN PGP SIGNAT