cancel
Showing results for 
Search instead for 
Did you mean: 

ECC proxy to HCI: decode Base 64 encoded images in HCI

Former Member
0 Kudos

Hi Experts

I have a requirement where i will be getting below fields from the ECC proxy

Header 1..1
refnumber
Invoices 1..Unbounded
duedate
productcode
productimagefilename
Images 1..Unbounded productimage

I have to create a txt or csv file from invoices fields and productimage(1...Unbounded) are Base64 encoded images that i need to decode in binary and then save both file and images in an SFTP folder.

What should be the approach for this...mapping level UDF for Base 64 decoding or base 64 decoder i can use from HCI pallate

Regards

naina

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

Hello Naina,

Below should work.

Have parallel multicast branch and in the first create invoice field data ( CSV or txt) with all the necessary transformation.

In the second branch have a mapping to extract only productimage field and create one record per productimage and then use a splitter followed by decoder before sending one by one image to SFTP server.

Regards,

Sriprasad Shivaram Bhat

Former Member
0 Kudos

Thanks Sriprasad

I have a doubt whether this base64 decoder will convert to binary or text

Sriprasadsbhat
Active Contributor

Hello Naina,

If you are getting Base64 encoded data of Image1.png from source then it will create Image1.png photo in your SFTP folder.

Regards,

Sriprasad Shivaram Bhat

Answers (0)