简体   繁体   中英

how to access files on local file system from deployed web app?

I have a web app deployed on Tomcat on Windows 7. I have various files on the PC, local file system, that I want to access from my web app. How can I do this or is this possible?

Ok, looks like I found the solution.

Can just use the File() object with absolute paths and that does the trick.

I thought there would be some special requirements for web apps but it looks like there isn't

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM