cancel
Showing results for 
Search instead for 
Did you mean: 

Process all the files in a Zipped Folder

Former Member
0 Kudos

Hi All,

I have a scnario where one or more files would be zipped and placed in the FTP folder which needs to be processed by PI.

To implement this I tried to use PayloadZipBean to unzip along with PayloadSwapBean. But by doing this I am able to process only one of the files in the zipped folder which is again randomly picked. Everytime I process the same input different file is been processed and rest of the files are considered as an attachment.

Could any of you suggest me how to process all the files in the zipped folder?

Thanks

Sowmya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sowmya,

If the requirement is simply a file to file scenario without any mapping, you can follow the proceedure as said by Raja.

Could you explain the interface scenario, you are trying to implement. So that we would be suggest some solution for your query.

Former Member
0 Kudos

Hi

Ok, let me explain the complete scenario. I need to pick the zipped file and convert all the files present in the input zipped file to flat files and zip all the files before sending to the thrid party.

Due to this i cannot try extracting all the messages to some other location and then pick and process the files. By doing this, the each processed messages would be converted to plain flat file and then this can be zipped; which is not preferred.

Regards

Sowmya

rajasekhar_reddy14
Active Contributor
0 Kudos

divide your requirement in to two scenarios.

Scenarios1: convert zipped file in to one flat file select append mode in receiver channel.

Scenario2: Convert flat file in to zipped format.

use standard predefined beans,this can me achived. easily.

Former Member
0 Kudos

Hi Sowmya,

The simple way is to write a OS script to unzip the files on tjhe FTP. So that PI will be able to pick all the files and process.

Former Member
0 Kudos

Already suggested this solution but as the indiviual files are very huge; there would be a huge memory issue and the solution was not accepted.

rajasekhar_reddy14
Active Contributor
0 Kudos

create one more interface dump zipped file to target system(if no mapping involed), it gives very best perfromance even 1gb file can trafer easily.

not sure about OS commnad perfromance but it should work.

Former Member
0 Kudos

hello,

pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).

then Use another sender communication channel to pickup all these text file .

for further clarification you can use these links also. -

Regards,

Phani