<?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: Save binary file on backend corrupted ( NUL char ) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-binary-file-on-backend-corrupted-nul-char/m-p/9336008#M1729725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes .. sorry for mistake. It was the first time I logged after moderator approvement and when I tried posting the first time, I get a "unauthorized" message I didn't understand. (in the link above there is the answer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2013 09:04:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-03-12T09:04:11Z</dc:date>
    <item>
      <title>Save binary file on backend corrupted ( NUL char )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-binary-file-on-backend-corrupted-nul-char/m-p/9336006#M1729723</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 am having some problem while saving data from GOS.I retrieve Gos file info with BDS_GOS_CONNECTIONS_GET. Then I have succesfully saved data in frontend (SO_OBJECT_READ + SO_OBJECT_DOWNLOAD) but having problem cannot understand in background (saving on backend).&lt;/P&gt;&lt;P&gt;For backend, I used SO_DOCUMENT_READ_API1 and then tried to save file with &lt;SPAN class="L0S52"&gt;" OPEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATASET &lt;/SPAN&gt;loc_path &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OUTPUT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BINARY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MODE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. ... TRANSFER line TO loc_path".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;I tried as working area Char, string, Xstring, Field-symbols... without luck ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;The file generated on server is corrupted, but is almost identical to the original. Here follows a shot of text-editor of same piece of file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;This is the correct file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Type /FontDescriptor&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Ascent 718&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/CapHeight 718&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Descent -207&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Flags 35&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/FontBBox [-166 -225 1000 931]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/FontName /Helvetica&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/ItalicAngle 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/StemV 105&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endobj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;9 0 obj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/WinAnsiEncoding&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endobj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;10 0 obj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;&amp;lt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Type /Font&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Subtype /Type1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/BaseFont /Helvetica&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the corrputed one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Type /FontDesc&lt;/EM&gt;&lt;STRONG&gt;NUL&lt;/STRONG&gt;&lt;EM&gt;riptor&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Ascent 718&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/CapHeight 718&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Descent -207&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Flags 35&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/FontBBox [-166 -225 1000 931]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/FontName /Helvetica&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/ItalicAngle 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/StemV 105&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endobj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;9 0 obj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/WinAnsiEncoding&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endobj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;10 0 obj&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;&amp;lt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Type /Font&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Subtype /Type1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/BaseFont /Helvetic&lt;/EM&gt;&lt;STRONG&gt;NUL&lt;/STRONG&gt;&lt;EM&gt;a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ediroe (notepad++) show &lt;STRONG&gt;NUL &lt;/STRONG&gt;characters.. that corrupt the file. Any idea of how to remove them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hint is welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 15:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-binary-file-on-backend-corrupted-nul-char/m-p/9336006#M1729723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-11T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Save binary file on backend corrupted ( NUL char )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-binary-file-on-backend-corrupted-nul-char/m-p/9336007#M1729724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a same issue with thread: &lt;A _jive_internal="true" href="https://answers.sap.com/thread/3323333"&gt;http://scn.sap.com/thread/3323333&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;Please check the recommendation in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 03:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-binary-file-on-backend-corrupted-nul-char/m-p/9336007#M1729724</guid>
      <dc:creator>DavidLY</dc:creator>
      <dc:date>2013-03-12T03:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Save binary file on backend corrupted ( NUL char )</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-binary-file-on-backend-corrupted-nul-char/m-p/9336008#M1729725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes .. sorry for mistake. It was the first time I logged after moderator approvement and when I tried posting the first time, I get a "unauthorized" message I didn't understand. (in the link above there is the answer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 09:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-binary-file-on-backend-corrupted-nul-char/m-p/9336008#M1729725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-12T09:04:11Z</dc:date>
    </item>
  </channel>
</rss>

