We have developed a webdynpro appllication in which there is a functionality to add attachments from our local file to the WD applicaiton and save it. Now the error is that we are able to upload the attachmnets successfully and save it, but when we try to view the file which we upload from the WD application, it gives error message and we are unable to view it. For example, I have PDF form which was uploaded successfully into the WD application and save it. Later when I try to open the PDF form to view it(from the WD application), the adobe reader is opened, but gives error message 'There was an error opening this document. The file is damaged and could not be repaired' and we could not view the contents of the file. Please help me in this regard.
Note: The PDF file has no errors before uploading into the WD application. Similar kind of error is shown for other file formats also - like *.docx, *.xlsx, *.pdf, *.docm, *.ppt, *.pptx etc.
Please suggest us how to overcome this error.
Thanks in advance.