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

Decode Binary from xml data

0 Likes
2,359

Hello,

I try to get an xml node receiving from an Odata, below is the structure

I would like to get this specific node, then transform it in xml structure.

I use in a content modifier the different properties from the blog

https://blogs.sap.com/2015/04/30/base64decodeconverter-base64-decoding-made-easy/

But infortunatly I can't transform the binary data into xml data

Do you have an idea, do I forget some property into the content modifier in order to transform properly the data ?

Thanks for your help and your answers.

Regards

View Entire Topic
MortenWittrock
SAP Mentor
SAP Mentor

Hi Pascal

As manoj.khavatkopp points out, you can accomplish this easily using only the built-in steps. You need a Filter step to extract the Base64 encoded content and then a Base64 Decoder step. So like this:

After the first step, the payload consists of the Base64 encoded XML. After the second step, the payload is the decoded XML. This is assuming, of course, that the Base64 encoded stuff is actually XML. You refer to it as binary, but XML is text, right.

Configure the Filter step like this:

Have fun with CPI!

Regards,

Morten