Skip to Content
avatar image
Former Member

XML To base64binary Conversion

Hi,

I am having a mapping requirement as follows:

Source Structure: (it is in XML format)

<Src>

<Node1>

xyz.com

</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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 20, 2008 at 03:32 PM

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

    VJ

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2008 at 12:02 AM

    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

    https://blogs.sap.com/?p=40977

    Thanks

    Gaurav

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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