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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Dec 06, 2017 at 10:50 AM

    I didn't solved this as of now.

    Add comment
    10|10000 characters needed characters exceeded

  • 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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.