cancel
Showing results for 
Search instead for 
Did you mean: 

Unzip file using PayloadZipBean in Sender FILE adapter

Former Member
0 Kudos

I am trying to unzip a flat file in Sender FILE adapter using PayloadZipBean.

I am getting mapping error. The problem is File adapter is reading data without unzipping. I am getting weird characters/data, so mapping error.

I searched all the blogs/ forum threads and help.sap.com, everywhere the focus is on zipping, not unzipping.

the file I have is with .gz extension, but I tried with .zip extension also.

Please help in resolving this issue.

Edited by: Gopal Janagama on May 2, 2008 11:42 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Gopal,

GZIP and ZIP format are slightly different, as stated here :

"GZIP compresses only one file and does not have a header. ZIP contains header information about what files are contained in the file."

So I'm not sure the PayloadZipBean supports GZIP format ... Try to ungzip and then zip its content and see if the bean works for it

Rgds

Chris

roger_alluivall
Participant
0 Kudos

hi,please find below a link of a module I have developed to zip and unzip messages with gzip:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/04/29/module-payloadgzipbean-zip-and-un...

allamudi_loordh
Active Participant
0 Kudos

Hi Roger,

you can use java mapping for unzipping. let us know what is end to end. I mean after unzip what are going to do?

Regards,

Loordh