Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

File Not Found Exception :: File Upload


I am using File Upload functionality to upload a file to the server temporarily and then reading it again back ..

I am using the below code to upload the file to the server..,

int temp = 0;

  File f = new File(wdContext.currentcontextElement().getFileResource().getResourceName().toString());

  FileOutputStream fos = new FileOutputStream(f);

  if(wdContext.currentcontextElement().getFileResource() != null)


  InputStream stream = wdContext.currentcontextElement().getFileResource().read(false);

  while((temp = != -1)







  path = f.getAbsolutePath();

When I try to read the file from the above path I am getting the File not found exception ....

The above code works fine in Dev but having issues in Q . Any particular reasons ???? Any help would be highly appreciated ....


Former Member
Not what you were looking for? View more on this topic or Ask a question