【发布时间】:2015-09-25 10:57:08
【问题描述】:
我遇到了Azure WebSites 的问题。
我正在使用java 从WebService 接收图像,我的测试环境中的同一个应用程序不会抛出异常,但是当我将其上传到Azure 时,它就坏了。
File file = new File("image.jpg");
FileOutputStream outputStream = new FileOutputStream(file.getName());
//this happens ==> java.io.FileNotFoundException: image.jpg (Access is denied)
我找到了这个 link,但这解释了仅适用于 PHP 和 ASP.NET 的解决方案,在
java路径我试过了:
D:\\home\\site\\wwwroot\\app_data\\image.jpg
D:\\Program Files (x86)\\apache-tomcat-7.0.50\\image.jpg
没有成功!
有人可以帮助我吗?
【问题讨论】:
标签: java azure azure-web-app-service