<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Decode Base64 at field level! in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaa-p/9673540#M3458747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anandh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to implement a UDF or Java-Mapping to do the decoding. Please search on SDN, you will find some discussions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 14:02:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-08-20T14:02:55Z</dc:date>
    <item>
      <title>Decode Base64 at field level!</title>
      <link>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaq-p/9673539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting a soap response from webservice where one particular field will be encoded in base64 format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While mapping I would like to decode this into binary format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise the procedures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anandh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaq-p/9673539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-20T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Decode Base64 at field level!</title>
      <link>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaa-p/9673540#M3458747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anandh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to implement a UDF or Java-Mapping to do the decoding. Please search on SDN, you will find some discussions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaa-p/9673540#M3458747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-20T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Decode Base64 at field level!</title>
      <link>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaa-p/9673541#M3458748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the sap util libraries i.e. aii_utilxi_misc.jar - import this in imported archive&amp;nbsp; - import/mention this in the Archives Used tab in the screenshot below.&amp;nbsp; In the Import Instructions mention - com.sap.aii.utilxi.base64.api.Base64 and create a udf as shown below (add exception handling).&lt;/P&gt;&lt;P&gt;This udf can then be used in your mapping for decoding :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/264822" height="267" width="609" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use apache libraries - Go to the functions tab and add&amp;nbsp; the import - &lt;SPAN style="color: black; font-family: Arial; font-size: 9pt;"&gt;&lt;SPAN class="IL_AD"&gt;org.apache.commons.codec.binary.Base64.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Arial; font-size: 9pt;"&gt;&lt;SPAN class="IL_AD"&gt;Create a udf in similar lines&amp;nbsp; - where encoded is the input field value :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;byte[] decoded = Base64.decodeBase64(encoded);&lt;/P&gt;&lt;P&gt;String decodedout = String(decoded);&lt;/P&gt;&lt;P&gt; return&amp;nbsp; decodedout;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subhro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaa-p/9673541#M3458748</guid>
      <dc:creator>subhro_de</dc:creator>
      <dc:date>2013-08-20T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Decode Base64 at field level!</title>
      <link>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaa-p/9673542#M3458749</link>
      <description>&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;How to get the com.sap.aii.utilxi.base64.api.* in the Import instructions of functions in SAP PI.&lt;/P&gt;&lt;P&gt;and also please let us know where to get this jar or class file.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 11:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/decode-base64-at-field-level/qaa-p/9673542#M3458749</guid>
      <dc:creator>praveenkva</dc:creator>
      <dc:date>2022-04-13T11:08:26Z</dc:date>
    </item>
  </channel>
</rss>

