<?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 Transferring file to byte array in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-file-to-byte-array/m-p/6000216#M1344117</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;We have a requirement to upload a document (any common file format, e.g. Word, Excel, PDF etc) into SAP then forward to a document management system which expects the document content to be submitted via a web service as a byte array in format base64Binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we simply use class CL_GUI_FRONTEND_SERVICES-&amp;gt;GUI_UPLOAD specifying the file format as 'BIN' or do we need to do anything first to process the file content?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2009 15:51:34 GMT</pubDate>
    <dc:creator>alancecchini</dc:creator>
    <dc:date>2009-08-03T15:51:34Z</dc:date>
    <item>
      <title>Transferring file to byte array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-file-to-byte-array/m-p/6000216#M1344117</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;We have a requirement to upload a document (any common file format, e.g. Word, Excel, PDF etc) into SAP then forward to a document management system which expects the document content to be submitted via a web service as a byte array in format base64Binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we simply use class CL_GUI_FRONTEND_SERVICES-&amp;gt;GUI_UPLOAD specifying the file format as 'BIN' or do we need to do anything first to process the file content?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 15:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-file-to-byte-array/m-p/6000216#M1344117</guid>
      <dc:creator>alancecchini</dc:creator>
      <dc:date>2009-08-03T15:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring file to byte array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-file-to-byte-array/m-p/6000217#M1344118</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;you need to preform additional step. base64 is special type of coding data (check wikipedia for more info about base64). base64 is used in HTTP protocol. Hence you can find methods for base64 encoding/decoding in class CL_HTTP_UTILITY. Those methods work with strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 01:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-file-to-byte-array/m-p/6000217#M1344118</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-08-06T01:47:13Z</dc:date>
    </item>
  </channel>
</rss>

