|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Possible to get rid of multipart/form-data header? |
« View previous topic :: View next topic » |
Author |
Message
|
Orette |
Posted: Wed Mar 22, 2017 12:56 pm Post subject: Possible to get rid of multipart/form-data header? |
|
|
Newbie
Joined: 22 Mar 2017 Posts: 8
|
I'm uploading files using the MIME domain and when I redownload the uploaded file and open it in a text editor, there is a header at the top of the document. For .pdf files, this is fine, as Adobe Reader can seemingly handle this header being there. However, for .xls files, it is an issue, as Excel cannot handle this header. The header looks as follows (minus the numers; I'm just using those to show the white space):
1.
2. --myBoundary
3.
After the header, follows the actual content of the file. If I manually remove this header in Notepad++, the .xls files open as they should.
I did some tinkering with my ESQL and found that I could not remove the line:
Code: |
SET OutputRoot.Properties.ContentType = 'multipart/form-data; boundary="myBoundary"'; |
as that makes it so that my files can no longer upload. Is there any way in ESQL to force the --myBoundary to not appear at the top of my documents when I open them in a text editor, but still have the Content-Type set as multipart/form-data? I have not been able to find an answer yet.
Thank you for your time. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Mar 22, 2017 11:01 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Can a moderator please move this to the Broker forum
Thanks _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Mar 23, 2017 3:47 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
A MIME document consists of several pieces.
If you do not want the MIME headers on the output, then you should only forward the contents of the MIME part you want to use...
see here
For example,
Code: |
Set OutputRoot.BLOB.BLOB = InputRoot.MIME.Parts.Part.Data.BLOB.BLOB |
_________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Orette |
Posted: Thu Mar 23, 2017 9:35 am Post subject: |
|
|
Newbie
Joined: 22 Mar 2017 Posts: 8
|
Thank you for your assistance. Interestingly enough, it helped me arrive at the realization that I did not need a MIME at all! Although indirect, it was definitely still a huge help.
Thank you for your time. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|