Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

File Upload and Download in Application Server

former_member686907
Discoverer
0 Kudos
652

My Client wants to upload the file against the tender no and later wants to download the same file against the same tender no. They do not use FTP server. They had very small MB files, so I suggested them to that these files can keep in the application server. So I have put the functionality CG3Y, CG3Z , CACS_FILE_COPY in my custom program. My upload and download file functionality working properly but after download few pdf files is not opening in Adobe Reader but the same files opened in Mozilla, Edge, Chrome . They want it should have opened in Adobe reader.

Any suggestions like where should I tell them to store the files and files is not opened by adobe reader. Thanks in Advance.

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos
352

As already discussed one thousand times in the forum, you probably forgot to define the exact size in bytes of the PDF when you write it.

former_member686907
Discoverer
0 Kudos
352

Will you please provide me the link ? I need to upload less than 10mb data.

Sandra_Rossi
Active Contributor
0 Kudos
352

search

pdf corrupted site:sap.com

(parameter FILELENGTH of GUI_UPLOAD and GUI_DOWNLOAD methods CL_GUI_FRONTEND_SERVICES)

NB: if you want to target someone (me), if this person has posted an Answer, use the button COMMENT, if this person is the Original Poster of the question he/she will be automatically informed, otherwise copy/paste their hyperlinked name sandra.rossi so that the person receives a warning (NB: @ doesn't work/but typing this character will suggest hyperlinked names).