cancel
Showing results for 
Search instead for 
Did you mean: 

Unzipping a file

Former Member
0 Kudos

Hi All

I am using an AS2 to file scenario. I am sending a zip file(contains .pdf and .edi files).

Is it possible to use a file adapter at receiver side so that i can use PayLoadZipBean module..

So that i can decompress zip file [Which contains both pdf and edi files]???

Can anyone provide step by step solution for this?

Thanks

Dhanish

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Use Seeburger Module..

localejbs/Seeburger/Zip..

Mode: unZip

Thanks

Ashok

Former Member
0 Kudos

When using this module, how do you configure the rest of the adatper?

I am receiving a ZIP file via AS2, and have the module loaded using mode=unzip.

When the zip being received had many files contained there in, how are all of the individual files written to a specific directory?

Shabarish_Nair
Active Contributor
0 Kudos

try using the payloadzipbean - /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

else try the OS commands - /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

Former Member
0 Kudos

Hi Shabarish

First of all thanks for the reply.

In the links given by you, it only explain how to use zip functionality.

But i want to know how to apply unzip functionality in module configuration.

Can anyone please help me on this...?

Thanks

Dhanish

Shabarish_Nair
Active Contributor
0 Kudos

the parameters are documented here - http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm

in your case you need it in the receiver side? in that case i guess a OD command is a good option.

former_member200962
Active Contributor
0 Kudos
But i want to know how to apply unzip functionality in module configuration

Check this note: https://service.sap.com/sap/support/notes/965256

From the note:
Example 3: unzipping payloads from the main payload which is zipped.
..name: zip.mode
..value: unzip

Former Member
0 Kudos

Hi All

I have used module key zip.Mode and value unzip

and gave the target file name as (.) as it contains different files. and rest are same

But i am getting a strange output. (Only one file in target folder which contains strange characters ).

I dont know where i went wrong. (like Module or other file parameters.) and i dont have much experience in module configuration also.

Please help me on this

Thanks

Dhanish

former_member200962
Active Contributor
0 Kudos

dont know if the (.) concept works here also...

For a test just include one file in the zip and give the file name in the module config...and check if you are getting proper output for it.

Former Member
0 Kudos

I tried . But the result is same.

Are you sure that we can decompress multiple type files using the payloadZipBean??

I tried several combinations. It is not working

Thanks

Dhanish

former_member200962
Active Contributor
0 Kudos

what are your module config parameters.....i hope that you are following this advice from the blog:

zip.filenameKey 
You define how the files inside the zip file should be named. You can choose: payloadName, 
contentType, contentDescription, and contentDisposition. This parameter is not needed, when zip.mode 
is unzip.

Regards,

Abhishek.