cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PayloadZipBean for nested zip files

prasad_ulagappan2
Contributor
0 Kudos
123

Hi,


My scenario is file (zip) to file (unzip).

Zip file contains one parent folder, parent folder has 6 nested folders and each folder contains 12 files. (all the 12 files are .jpg and .tif files). Few folders contains the same file as well, like A00001.tif in two folders.

Using PayloadZipBean, I have extracted all the files in zip files, using PayloadSwapBean, I can able to swap the attachments and place it target folders. Using this method, I can be able to swap only one attachment. Also I should know the attachment name, to use it with PayloadSwapBean(Paramenters: swapKeyName and swapKeyValue)

Is there any other method, that I can be able to extract all files in zipped folder and place it in the target folders in a single shot.

I am planning to go for Custom Adapter Module development, but not sure how far this can be feasible. Any other idea is much appreciated.

Thanks & regards

UP


View Entire Topic
MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Is there any other method, that I can be able to extract all files in zipped folder and place it in the target folders in a single shot.

yes - unzip in OS command of the file adapter - this way you can unzip all files and push them via PI without the need for an adapter module,

Regards,

Michal Krawczyk