I have following code that create file to download. This code execute from tomcat to create a downloadable file. This is working fine on my local tomcat but not working on azure web app tomcat. Please let me know what I am missing.
String rootFilePath=env.getProperty("file.root_folder_path");
String folderName= rootFilePath + File.separator + "physician";
File f = new File(rootFilePath);
if (!f.exists())
f.mkdir();
f = new File(folderName);
if (!f.exists())
f.mkdir();
folderName= folderName + File.separator + physicianId;
f = new File(folderName);
if (!f.exists())
f.mkdir();
folderName= folderName + File.separator + "PDF";
f = new File(folderName);
if (!f.exists())
f.mkdir();
fileName= folderName + File.separator + "PhysicianPdf_"+physicianId+".pdf";
}
return fileName;