cancel
Showing results for 
Search instead for 
Did you mean: 

Using .CSV file which is zipped and Base64 encoded.

0 Kudos

Hello PI gurus

I’m working on re-doing the Sender side of an interface. They want to grab a payload which is a .csv file which is zipped and then encoded in Base64.

I did some search and saw a suggestion that we can use java mapping to decode the Base64.   I’m not sure whether the decompression can be done within the same mapping.  Any ideas?

Thanks in advance
Ram

Accepted Solutions (0)

Answers (4)

Answers (4)

engswee
Active Contributor
0 Kudos

You can also try out the following adapter module which handles both the decoding and unzipping

Former Member
0 Kudos

Hi,

You need to use the java mapping for this to achieve..

We have done the similar thing using the java mapping for posting the data to the ariba network..

where the data need to be passed in csv file ,zip it and encode using base64..

There are apache api's org.apache.commons.codec.binary.Base64 using which you can use encode and decode functions and ZipOutputStream class using which we acheived the same..

HTH

Rajesh

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Ram,

Use payloadzipbean to unzip the payload and then read it via java mapping.

Regards,
Mark

RaghuVamseedhar
Active Contributor
0 Kudos

Ram,

It can be done in single Java mapping.

Please check below example (you can use base64 and unzip part).