Skip to Content

multiple files zipped into single zip file at the receiver.

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 05, 2017 at 12:58 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • Posted on Dec 06, 2017 at 10:50 AM

    I didn't solved this as of now.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2017 at 08:59 AM

    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


    1.jpg (98.7 kB)
    2.jpg (20.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.