cancel
Showing results for 
Search instead for 
Did you mean: 

multiple files zipped into single zip file at the receiver.

0 Kudos

I have a multiples files at sender i need to zip it into a single file at the receiver.

when i put multiple files in my sender channel the files will be individually zipping into different folders,but i need them in single zip file.I used AF_Modules/PayloadZipBean in receiver channel module tab and zipmode as zip.All.If any one know about this please comment it.

Accepted Solutions (0)

Answers (3)

Answers (3)

weberpat
Contributor

Hi Prashant,

Two things that come to my mind:

1) Are you sure all your files get sent in a single PI message, i.e. are you using the "additional files" configuration in the sender adapter?

2) The zip mode that would put the main payload and all attachments into a single file is called "zipAll" (without period). Can you double check that you did not include the period that you have in your questions?

Regards,

Patrick

0 Kudos

Hi Patrick,

I used advanced selection for source file to pick multiple files from different folders and i used zip.mode without period also(zipAll) it is not an issue.All the files are picking from sender but at receiver it is creating individual zip files at receiver.

weberpat
Contributor
0 Kudos

Hi Prashant,

Can you post screenshots of your sender and receiver channel configuration?

Are the files showing as attachments of a single message in your message monitor?

Regards,

Patrick

0 Kudos

No every file is processing with different message ID,my requirement is all the files need to zipped in one one file.

weberpat
Contributor
0 Kudos

If you are processing each file in a separate message ID, you cannot zip them into one archive using the PayloadZipBean module as it would only ever apply to a single message. The "additional files" option I mentioned will take care of storing all your files into a single message. If you must process the files in separate messages, you'll have to revert to a script-based solution, i.e. you'll have to execute a shell script after you have posted your files to your target directory that detemines if all needed files are there and performs the zip action.

JayChan
Active Participant
0 Kudos

Hi, Prashant

Two things to check:

1.Did you put PayloadZipBean the last module before executing CallSapAdapter module

2.Please check if your module configuration the same as following picture, which works fine for zip all files into 1 compressed file.

Jay

weberpat
Contributor
0 Kudos

This is how you should get the result you want - but only if you have all files attached to a single message. As that doesn't seem to be the case, it would really be helpful if you could update the question and share your configuration.

0 Kudos

I didn't solved this as of now.