当前位置: 动力学知识库 > 问答 > 编程问答 >

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: