This question is related to “Java Web Application – File Upload“.
Is it possible for a Web Application to read a file from the host file system?
My guess is that for security reasons the answer is no – but I guess it should be possible for it to read files in directories below the root of the application.
If so, could someone supply an example code snippet.
Thanks
This question is related to Java Web Application – File Upload . Is it
Share
I’m using the Apache Wicket web-framework, deployed on the Glassfish 2 web-app container, and this snippet works fine for me:
Could however be related to the way the web application server is setup, so your mileage may vary..