<?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: PDF in HTTP multipart response: missing boundary? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-in-http-multipart-response-missing-boundary/m-p/2567404#M585879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very strange thing happened: I changed the document to text/plain and it worked like charm. When I got back to my original PDF it also worked fine, and it stood fine up to now - "they lived happily ever after". Like there were never problems. I swear I didn't change anything else. Maybe if I spilled coffee on the box, it would be even better.&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2007 13:01:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-01T13:01:51Z</dc:date>
    <item>
      <title>PDF in HTTP multipart response: missing boundary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-in-http-multipart-response-missing-boundary/m-p/2567403#M585878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;If I add my PDF to the HTTP response directly, everything works fine, so we can assume that the PDF is correct.&lt;/P&gt;&lt;P&gt;I need to create this response as &amp;lt;i&amp;gt;multipart/form-data&amp;lt;/i&amp;gt;, and when I add the same PDF to the body of the &amp;lt;i&amp;gt;data&amp;lt;/i&amp;gt; multipart (either by using ADD_CDATA or ADD_DATA methods), I get error message from the client: &amp;lt;i&amp;gt;data: Invalid argument&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;I examined the response by tunneling program and didn't see anything suspicious. Please see the response below.&lt;/P&gt;&lt;P&gt;Does anyone has experience with this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;HTTP/1.0 200 OK
content-type: multipart/form-data; boundary=ejjeeffe0
content-length:     35729
x-contentrep: AL
x-pversion: 0046
x-docid: 22b524a7-3c27-11dc-8168-8b337fac673a
x-docstatus: ONLINE
x-numbercomps: 1
x-datec: 2007-07-27
x-timec: 11:52:49
x-datem: 2007-07-27
x-timem: 11:53:11
server: SAP Web Application Server (1.0;700)

--ejjeeffe0
Content-Type: application/pdf
Content-Length: 35376
X-compId: data
X-compDateC: 2007-07-27
X-compTimeC: 11:52:49
X-compDateM: 2007-07-27
X-compTimeM: 11:53:11
X-compStatus: ONLINE
X-pVersion: 0046
X-Content-Length: 35376

%PDF-1.3
...
--ejjeeffe0--&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 11:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-in-http-multipart-response-missing-boundary/m-p/2567403#M585878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: PDF in HTTP multipart response: missing boundary?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-in-http-multipart-response-missing-boundary/m-p/2567404#M585879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very strange thing happened: I changed the document to text/plain and it worked like charm. When I got back to my original PDF it also worked fine, and it stood fine up to now - "they lived happily ever after". Like there were never problems. I swear I didn't change anything else. Maybe if I spilled coffee on the box, it would be even better.&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pdf-in-http-multipart-response-missing-boundary/m-p/2567404#M585879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:01:51Z</dc:date>
    </item>
  </channel>
</rss>

