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 for this uploaded image. If the user hits download, he should be able to download the file he uploaded.
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. I hope this explains my issue. Thanks Akash. Christopher Schultz-2 wrote: > > > Are you trying to read a file off the disk using something like > FileInputStream, or are you trying to access a file from the server > using a URL from a browser? > > These are very basic questions whose answers will certainly help solve > your problem. > > -- View this message in context: http://www.nabble.com/Unable-to-access-files-outside-Webapp-directory-in-tomcat-tp25213157p25251880.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org