I am having a problem with Azure WebSites
.
I am using java
to receive an image from a WebService
, the same app in my test environment doesn't throw the exception, but when I upload it to Azure
, it brokes.
File file = new File("image.jpg");
FileOutputStream outputStream = new FileOutputStream(file.getName());
//this happens ==> java.io.FileNotFoundException: image.jpg (Access is denied)
I found this link, but that explains solutions just for PHP
an ASP.NET
, in
java
I tryed the paths:
D:\\home\\site\\wwwroot\\app_data\\image.jpg
D:\\Program Files (x86)\\apache-tomcat-7.0.50\\image.jpg
without success!
Someone could help me?