<?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: How to store base64 string as binary? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013960#M3605202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uldis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;EM&gt;Attachment&lt;/EM&gt; is the name of the DO Attachment and you've already created an instance, would this code below do the job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;import &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;ABSL&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;import &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;BASIS&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;Global&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;DataFromWebService&lt;/SPAN&gt; : &lt;SPAN style="color: darkgray;"&gt;BinaryObject&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray; font-size: 9.5pt; font-family: Consolas;"&gt;DataFromWebService.content = &amp;lt;...&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: darkgreen; font-family: Consolas; font-size: 9.5pt;"&gt;// from WebService&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;BinaryObject&lt;/SPAN&gt; = &lt;SPAN style="color: darkgray;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;Attachement&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;GetFirst&lt;/SPAN&gt;().&lt;SPAN style="color: darkgray;"&gt;FileContent&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;BinaryObject&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: darkgray; font-family: Consolas; font-size: 9.5pt;"&gt;BinaryObject&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;.&lt;SPAN style="color: darkgray;"&gt;content&lt;/SPAN&gt; = &lt;SPAN style="color: darkgray;"&gt;DataFromWebService&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;content&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Horst&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2014 09:16:59 GMT</pubDate>
    <dc:creator>HorstSchaude</dc:creator>
    <dc:date>2014-01-17T09:16:59Z</dc:date>
    <item>
      <title>How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaq-p/10013959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all cloud developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I'm facing issue to which I can't find solution. I get through web service call binary content as base64 string. I want to store it as attachment in cloud. But currently seems like there is no possibility to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I thought that Binary.ParseFromString() function could solve this issue but now I understood that it's used differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody of you faced this issue and found solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Uldis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaq-p/10013959</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-16T18:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013960#M3605202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uldis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;EM&gt;Attachment&lt;/EM&gt; is the name of the DO Attachment and you've already created an instance, would this code below do the job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;import &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;ABSL&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;import &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;BASIS&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;Global&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;DataFromWebService&lt;/SPAN&gt; : &lt;SPAN style="color: darkgray;"&gt;BinaryObject&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray; font-size: 9.5pt; font-family: Consolas;"&gt;DataFromWebService.content = &amp;lt;...&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: darkgreen; font-family: Consolas; font-size: 9.5pt;"&gt;// from WebService&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;SPAN style="color: darkgray;"&gt;BinaryObject&lt;/SPAN&gt; = &lt;SPAN style="color: darkgray;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;Attachement&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;GetFirst&lt;/SPAN&gt;().&lt;SPAN style="color: darkgray;"&gt;FileContent&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;BinaryObject&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: darkgray; font-family: Consolas; font-size: 9.5pt;"&gt;BinaryObject&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;.&lt;SPAN style="color: darkgray;"&gt;content&lt;/SPAN&gt; = &lt;SPAN style="color: darkgray;"&gt;DataFromWebService&lt;/SPAN&gt;.&lt;SPAN style="color: darkgray;"&gt;content&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Horst&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 09:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013960#M3605202</guid>
      <dc:creator>HorstSchaude</dc:creator>
      <dc:date>2014-01-17T09:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013961#M3605203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Horst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this approach I've tried and thats why I had this question because with following approach we will get following error "Assignment of the type 'String' to the type 'Binary' is not possible."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is missing some kind of base64 decode function, because Binary library allows us only encode binary to base64 string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;Uldis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 11:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013961#M3605203</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-17T11:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013962#M3605204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uldis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get this error during runtime or in the ABSL editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It reads to me that you have a String data type so you use your approach with Binary.ParseFromString().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about setting the other attributes of the BinaryObject liek "characterSetCode"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Horst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 12:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013962#M3605204</guid>
      <dc:creator>HorstSchaude</dc:creator>
      <dc:date>2014-01-17T12:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013963#M3605205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Horst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following error will appear in ABSL editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use Binary.ParseFromString() I'll get errors when I try to open those attachment files, that content is corupped. I assume ParseFromString is used only to covert text content, i.e, html content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for my binary object content:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpBinary.content = Binary.ParseFromString(impBase64);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpBinary.fileName = "recievedfile.pdf";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpBinary.characterSetCode = "utf-8";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpBinary.mimeCode = "application/pdf";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 12:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013963#M3605205</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-17T12:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013964#M3605206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uldis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I 've got no error in the ABSL editor with the cde from above.&lt;/P&gt;&lt;P&gt;What is the definition of "cpBinary"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Horst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013964#M3605206</guid>
      <dc:creator>HorstSchaude</dc:creator>
      <dc:date>2014-01-17T13:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013965#M3605207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Horst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using ParseFromString you won't get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpBinary is BinaryObject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will go through. But when I add this binary object to DO Attachment and try to open the file I'll get error that file is corrupted or it's not PDF. This error you will get when you are opening downloade file on your computer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013965#M3605207</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-17T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013966#M3605208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uldis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I mixed it up: What's the type of impBase64?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Horst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013966#M3605208</guid>
      <dc:creator>HorstSchaude</dc:creator>
      <dc:date>2014-01-17T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013967#M3605209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;impBase64 contains value from web service response so it's interpreted as string. As I mentioned earlier web service returns base64 encoded string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013967#M3605209</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-17T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013968#M3605210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Udis,&lt;/P&gt;&lt;P&gt;the particular choice of character set selected for the 64 characters required for the base varies between implementations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try to do a reverse engineering, using the stringToBase64 function, what is the C4C implementation, and modify your ws accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013968#M3605210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-17T14:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013969#M3605211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with stringToBase64 function you mean Binary function ToBase64String? If yes then I can't understand your idea, because for this function import value should be Binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show with simple example what was your idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Uldis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013969#M3605211</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-17T14:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013970#M3605212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uldis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When do you access the file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the same sesssion before Save&lt;/LI&gt;&lt;LI&gt;In the same session after Save&lt;/LI&gt;&lt;LI&gt;In a new session&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reason:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've talked to the Attachment colleagues&amp;nbsp; and depending on that they access their original buffer, modified buffer or must read from DB. They told me that may be the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Horst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013970#M3605212</guid>
      <dc:creator>HorstSchaude</dc:creator>
      <dc:date>2014-01-17T15:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013971#M3605213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Horst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested all three scenarios and result was same. I'm not sure that this would be a reason.&lt;/P&gt;&lt;P&gt;Binary is saved in attachement folder with structure what I assigned to BinaryObject when I parsed base64 string to binary. After that using creatFile action I added it to Attachment Folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;Uldis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 16:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013971#M3605213</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-17T16:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013972#M3605214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you are right. I thought that the input was a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try all the codification types listed in the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Base64" title="http://en.wikipedia.org/wiki/Base64"&gt;Base64 - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can ask SAP people what kind of codification they use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 17:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013972#M3605214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-17T17:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013973#M3605215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem at least temporally is solved. As I thought ParseFromString is not that function on which we can relay when we need to decode base64 string to binary. So there was made code fix from backed for now adding function which actually decodes base64 string to binary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I really hope that in future Binary library could be updated with new fuction which decodes base64 string back to binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Uldis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 20:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013973#M3605215</guid>
      <dc:creator>uskalviskis</dc:creator>
      <dc:date>2014-01-18T20:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013974#M3605216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;where do I find the ToBase64String function?&lt;/P&gt;&lt;P&gt;I need to convert the base64 binary to base64 string.&lt;/P&gt;&lt;P&gt;Didn't find anything like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 17:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013974#M3605216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-20T17:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013975#M3605217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for joining the party late! What seems to be the confusion here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XSD Datatype of BinaryObject is &lt;STRONG&gt;Base 64 Binary&lt;/STRONG&gt; which means that you don't have to do anything if your webservice is sending the base64 encoded data inside&lt;EM&gt; FileContent&lt;/EM&gt; of AttachmentFolder. When such calls reach ByD, it will be saved as a proper FileAttachment!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't have to create a Binary Object from a base64 value with your absl coding! Pls see the below screenshot.&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/393374" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 04:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013975#M3605217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-21T04:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013976#M3605218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uldis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar problem.&lt;/P&gt;&lt;P&gt;I want to pass the binary-content to Adobe Livecycle Designer for printing an image dynamically.&lt;/P&gt;&lt;P&gt;That will work if I get the binary data somehow in the XML. Because the AttachmentFolder is not filled in the XML I want to make a customer field an move the binary into it.&lt;/P&gt;&lt;P&gt;I need the binary representation as a hexadecimal string like I see it in the debugger. A base64-coded string will work also. But at the moment I'm not able to do anything with binaryObject.content.&lt;/P&gt;&lt;P&gt;Is there any way to move it to an LANGUAGEINDEPENDENT_EXTENDED_Text field in my xbo?&lt;/P&gt;&lt;P&gt;If I fill my field manually from the UI everything works fine, but I need the binary content to fill it automatically. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 15:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013976#M3605218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-21T15:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013977#M3605219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As there is no way that you can use a BinaryObject in an xbo, the question you asked is valid.&lt;/P&gt;&lt;P&gt;So, lemme ask if you tried the below thing already? make sure that your binary content will be no more than 255 characters else it will be trimmed out. Please let us know your progress here when you try. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416558" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 06:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013977#M3605219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-22T06:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to store base64 string as binary?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013978#M3605220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today I switched to 1402 and tried ToBase64String. It does exactly what I need. In my opinion I have no restriction to 255 characters. I use LANGUAGEINDEPENDENT_EXTENDED_Text in my xbo and specially for xbo this type is unlimitted in length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, the test shell in Studio 1402 is not able to show the content of my LANGUAGEINDEPENDENT_EXTENDED_Text-Field, it's always empty.&lt;/P&gt;&lt;P&gt;But I get the base64 data in my xml and the form is printing the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's a lot for your hint. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 14:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-store-base64-string-as-binary/qaa-p/10013978#M3605220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-24T14:26:17Z</dc:date>
    </item>
  </channel>
</rss>

