cancel
Showing results for 
Search instead for 
Did you mean: 

Compressing files from UI5 to SAP

0 Kudos
462

Hello Every Body,

Requirement: " I'm having an urgent requirement thing is user will upload the files and these files/ images may be larger than 50MB or 5MB. There's a problem in loading, so we need to change as Zip format."

"Question: In File transfer there's one option called TRUNCATE not sure w|w/o filter can change the file size. An Attempt was made which was Un-success. Some standard classes available not sure. If some one has made early.

Also Ui5 Person can use YUI compress in which project net-weaver works on JS. Could you suggest us how to achieve this result in ABAP ". Help us.

*

*

Thanks & Best Regards.

Harshanandan NM.

Accepted Solutions (0)

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor

You mean TRUNCATE DATASET? It's just to cut the file, not to compress.

There are 2 standard classes to compress/uncompress : CL_ABAP_ZIP (files like Windows ZIP) and CL_ABAP_GZIP (GZIP format).

Matt_Fraser
Active Contributor

Hi Sandra,

Are you sure your reply shouldn't be in the form of an answer, rather than comment? You do seem to be addressing the OP's question (if I understood it correctly).

Cheers,
Matt

Sandra_Rossi
Active Contributor
Matt Fraser Done, thanks.