cancel
Showing results for 
Search instead for 
Did you mean: 

XML To base64binary Conversion

Former Member
0 Kudos

Hi,

I am having a mapping requirement as follows:

Source Structure: (it is in XML format)

<Src>

<Node1>

<Field1>xyz.com</Field1>

</Node1>

<Node2>Data in base64binary format</Node2>

</Src>

While mapping the above structure to the target structure I need to remove the Node2 contents and then convert the remaining XML structure to base64binary format.

Please provide pointers in this regards.

Thanks,

Abhishek.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You can use XSLT mapping to map your target xml document to xml document with base64 binary this is what you have to use:

<xsl:output method="xml" encoding="base64binary"/>

Follow Michael blog to achieve this

Thanks

Gaurav

former_member200962
Active Contributor
0 Kudos

Hi,

I am able to convert the source structure into string but for the below statement

<xsl:output method="xml" encoding="base64Binary"/>

XSLT is throwing error:

java.lang.RuntimeException: Error:

SESU0007: Unknown encoding requested: base64Binary

at com.exln.stylus.CSaxon8Driver.doProcessing(CSaxon8Driver.java:270)

at com.exln.stylus.CProcessorDriver.process(CProcessorDriver.java:111)

Error:

SESU0007: Unknown encoding requested: base64Binary

However when I am testing the mapping in Integration Repository I am not getting any error but again the output is not getting converted to base64Binary format.

Please tell me what will be the exact encoding for base64Binary. I am using Stylus Studio for doing the mapping.

Thanks,

Abhishek.

Edited by: abhishek salvi on Oct 23, 2008 11:21 AM

VijayKonam
Active Contributor
0 Kudos

You might have to use java mapping. Search for base64 bineary format java apis or classes and develop java mapping.

VJ