cancel
Showing results for 
Search instead for 
Did you mean: 

Zipping the File

justin_santhanam
Active Contributor
0 Kudos

Dear Friends,

I need to know if the below scenario is possible in XI.

I have file placed in the source FTP server, my goal is to move the file to the target FTP server, with the below criteria.

Source FTP

File name - ABC.txt

Target FTP

File name - ABC.zip , the zip file must contain ABC.txt

Please let me know if you need more informations.

Thanks,

raj.

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Hi Raj,

Is this question that simple as it sounds? Or am I missing something.

Have you thought of using PayloadZipBean?

Regards,

Prateek

justin_santhanam
Active Contributor
0 Kudos

Prateek,

Thanks for your reply. I tried PayloadZipbean module, but it doesn't seems to be working correctly. If I used the payloadzipbean module, I'm getting the following results...

ABC.txt, source file

ABC.txt -target file (which is actually zip- contains unknown.xml)

Note: I'm using the Dynamic Configuration parameters, since the file name is not always going to be the same. Sometimes ABC.txt, sometimes CDE.txt.......

raj.

Former Member
0 Kudos

Hey Raj

did you happen to implement the code in below thread for dynamic file name ?

Thanx

Aamir

justin_santhanam
Active Contributor
0 Kudos

Buddy,

So, writing the custom module is the only option is it?

Thanks,

raj.

Former Member
0 Kudos

Raj

I haven't tried this personally so can't say for sure but by reading the blog and finding reference to this thread in it,i think that is the option to go ahead with.

Thanx

Aamir

justin_santhanam
Active Contributor
0 Kudos

Buddy,

I think it make sense. I will try to create module and see how it works. I'll update the same in the forum too.

Aamir/Prateek -Thanks for your valuable inputs!

Thanks,

raj.

Answers (2)

Answers (2)

markbernabe
Active Participant
0 Kudos

Hi Justin,

Were you able to solve your problem? I have the same requirement

Former Member
0 Kudos

Hey Buddy

why not configure standard zip module in receiver file adapter.

Thanx

Aamir

justin_santhanam
Active Contributor
0 Kudos

Hey Aamir,

I tried that option, but it doesn't seems to be working. .. Or I might not be knowing the proper way to use it..

I want the target zip file name and the content inside the zip file name to be same as the the source file name. This what makes me confuse a lot..

Any ideas, buddy?

Thanks,

raj.

Former Member
0 Kudos

Hey Buddy

Actually i just looked at the below blog and it looks like it should solve your issue.

/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework

I m not really sure if there is some intricate detail which i m missing:)

Thanx

Aamir

justin_santhanam
Active Contributor
0 Kudos

Aamir,

The solution might work, if the source and target file name is always going to be constant. But in my case, it varies. So I checked the Dynamic Configuration parameters File name , in both sender /receiver channels.

Thanks

raj.