<?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>topic Re: Encode and Decode Base64 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250694#M144893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the inverse situation.&lt;/P&gt;&lt;P&gt;i have a file in pdf format and i need to convert in Base64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SSFC_BASE64_CODE how this FM works?&lt;/P&gt;&lt;P&gt;i tried on SE37 but i did not understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 13:48:42 GMT</pubDate>
    <dc:creator>former_member400705</dc:creator>
    <dc:date>2008-10-15T13:48:42Z</dc:date>
    <item>
      <title>Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250688#M144887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to Encode and Decode Base64 File.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is any Function Modules or Class Methods to achieve the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Joseph Brown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 14:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250688#M144887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250689#M144888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found two comment for you :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- Take a look this FM &lt;/P&gt;&lt;P&gt;SCMS_BASE64_ENCODE&lt;/P&gt;&lt;P&gt;HTTP_BASE64_ENCODE&lt;/P&gt;&lt;P&gt;SSFC_BASE64_CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-Have look at this for Base64 encoding decoding sample check &lt;A href="http://makcoder.sourceforge.net/demo/base64.php" target="test_blank"&gt;http://makcoder.sourceforge.net/demo/base64.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. This knowledges quotationed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 13:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250689#M144888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250690#M144889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this to decode a base64 string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: utility TYPE REF TO cl_http_utility.
      CREATE OBJECT utility.

      CALL METHOD utility-&amp;gt;decode_base64
        EXPORTING
          encoded = mysapsso2
        RECEIVING
          decoded = cookie.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravikiran.&lt;/P&gt;&lt;P&gt;PS: Pls assign points for helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250690#M144889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250691#M144890</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;This is the encoded base64 file in XML format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Z_CREFO_DOC&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;E_PDF&amp;gt;&amp;lt;![CDATA[JVBERi0xLjMKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29k&lt;/P&gt;&lt;P&gt;ZT4+CnN0cmVhbQp4nE2MPQ/CMAxEd/8Kj/aQEKehIWv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gt;&lt;/P&gt;&lt;P&gt;Can i pass all these characters or i need to transform it first, extract the value of the element and decode? Finally i need to write the decoded outcome to a file (a pdf file) to the hard drive (may be with: OPEN DATASET P_DATASET FOR INPUT IN TEXT MODE ENCODING DEFAULT) &lt;/P&gt;&lt;P&gt;**************************************************&lt;/P&gt;&lt;P&gt;I saw this hint but I think there should be more to it (eg. transformation of the initial decoded xml file and the writing it to hard drive using the Open Dataset for Input...): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************being of report *************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: z       TYPE string,&lt;/P&gt;&lt;P&gt;      encode  TYPE string,&lt;/P&gt;&lt;P&gt;      decode  TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: obj  TYPE REF TO cl_http_utility,&lt;/P&gt;&lt;P&gt;      cref TYPE REF TO if_http_utility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT : obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cref = obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;z = 'what u have to encode'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;encode = obj-&amp;gt;if_http_utility~encode_base64( z ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;decode = obj-&amp;gt;if_http_utility~decode_base64( encode ).&lt;/P&gt;&lt;P&gt;****************end of report ***************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do i need more to the above report&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 14:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250691#M144890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-22T14:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250692#M144891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to parse the xml and take the contents betwee &amp;lt;E_PDF&amp;gt; and &amp;lt;/E_PDF&amp;gt; and pass the same to the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by the way the decode method is a static method so you dont need the create object call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_http_utility=&amp;gt;IF_HTTP_UTILITY~DECODE_BASE64&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          encoded = encoded&lt;/P&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          decoded = decoded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 22:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250692#M144891</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-22T22:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250693#M144892</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 passed the xml through DOM and got the value for the pdf which corresponds to the characters from 'J' to '='. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then applied SM69 to wrap up my Java Application and passed the value and the pdf filename as parameters; this architecture worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems the IF_HTTP_UTILITY class works when the xml file is encoded using: &lt;/P&gt;&lt;P&gt;encode = obj-&amp;gt;if_http_utility~encode_base64( z ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and decoded using:&lt;/P&gt;&lt;P&gt;decode = obj-&amp;gt;if_http_utility~decode_base64( encode ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jospeh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 09:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250693#M144892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T09:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250694#M144893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the inverse situation.&lt;/P&gt;&lt;P&gt;i have a file in pdf format and i need to convert in Base64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SSFC_BASE64_CODE how this FM works?&lt;/P&gt;&lt;P&gt;i tried on SE37 but i did not understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 13:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250694#M144893</guid>
      <dc:creator>former_member400705</dc:creator>
      <dc:date>2008-10-15T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250695#M144894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Durai,&lt;/P&gt;&lt;P&gt;After I decode as said by you, how do I archive it in SAP against an invoice?. I dont want a file to be archived by using the file path, instead I would want to directly archive the decoded message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 12:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250695#M144894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-25T12:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250696#M144895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Durai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Am able to encode my value using your code, when am trying to decode the encoded value am not getting correct value,&amp;nbsp; please check my code and&amp;nbsp; help me to solve this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_part = ''2000002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD cl_http_utility=&amp;gt;if_http_utility~decode_base64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; encoded = i_part&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECEIVING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; decoded = i_part1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;after encoding my i_part value is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i_part1 = ÓM4ÓM4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;decoding my encoded value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;cl_http_utility&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;if_http_utility&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;encode_base64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unencoded &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;STRONG&gt;i_part1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECEIVING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; encoded&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;i_part2&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;i_part2 = 000000.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 11:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250696#M144895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-31T11:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250697#M144896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 12:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250697#M144896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-21T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250698#M144897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prepare new thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abbas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 13:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250698#M144897</guid>
      <dc:creator>former_member194739</dc:creator>
      <dc:date>2014-04-21T13:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250699#M144898</link>
      <description>&lt;P&gt;&lt;B&gt;Encoding: &lt;/B&gt;To encode a string to Base64 format, you can first convert the string to Xstring using the function module SCMS_STRING_TO_XSTRING, and then use the function module SCMS_BASE64_ENCODE_STR to convert the Xstring to Base64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Decoding: &lt;/STRONG&gt;To decode a Base64 string, you can use a three-step procedure. First, convert the Base64 string to Xstring using the function module SCMS_BASE64_DECODE_STR. Next, transform the Xstring to Binary using the function module SCMS_XSTRING_TO_BINARY. Finally, turn the Binary format to String via the function module SCMS_BINARY_TO_STRING.&lt;/P&gt;&lt;UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 31 Aug 2023 16:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250699#M144898</guid>
      <dc:creator>alagon</dc:creator>
      <dc:date>2023-08-31T16:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Encode and Decode Base64</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250700#M144899</link>
      <description>&lt;P&gt;Quite complex solution. You can do it in one call only, for decode and encode. See other places in forum.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 18:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encode-and-decode-base64/m-p/1250700#M144899</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-31T18:19:19Z</dc:date>
    </item>
  </channel>
</rss>

