cancel
Showing results for 
Search instead for 
Did you mean: 

base64Binary To XML Conversion

Former Member
0 Kudos

Hi,

I am having a requirement in which I will be receiving a base64Binary data, this data I need to convert to a normal readable format and then map it to the respective xml tags in the target structure.

For eg:

<SRC>

<Node1>hdvgoagvwpeugv978320ruvbpaijsbv984y2-93y92v9bbbwbv(base64Binary)</Node1>

</SRC>

<TRG>

<Node1>ABCD</Node1>

<Node2>EFGH</Node2>

<Node3>XYZ</Node3>

</TRG>

Please provide pointers on how to achieve it. This needs to implemented using JAVA...as some of the XSLT functions may not be supported in SAP PI 7.1

Thanks,

Abhishek.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You can handle it in Java mapping, Adapter module

Check this as well

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/482aae19-0301-0010-3485-8efd6188...

Thanks

Gaurav

Former Member
0 Kudos

check this util from sap.

Base64Encoder.encode( string )

Base64Decoder.decode( string )

Former Member
0 Kudos

There is a b64 management package available in XI (PI too?) :

import com.sap.aii.utilxi.base64.api.Base64;

2 main static methods are available : decode() and encode(), with different input params according to your source format (byte[], String etc)

Rgds

Chris