on 07-31-2007 1:50 PM
Hello!
I am reposting this question in this forum because I have got no reply on ABAP, General.
If I add my PDF to the HTTP response directly, everything works fine, so we can assume that the PDF is correct.
I need to create this response as <i>multipart/form-data</i>, and when I add the same PDF to the body of the <i>data</i> multipart (either by using ADD_CDATA or ADD_DATA methods), I get error message from the client: <i>data: Invalid argument</i>.
I examined the response by tunneling program and didn't see anything suspicious. Please see the response below.
Does anyone has experience with this?
Thanks in advance!
Regards,
Igor
Response:
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--
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.
Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.