|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Binary data imbedded in xml getting converted somehow |
« View previous topic :: View next topic » |
Author |
Message
|
Mike Ryan |
Posted: Tue Nov 30, 2004 8:38 am Post subject: Binary data imbedded in xml getting converted somehow |
|
|
Newbie
Joined: 08 Jan 2004 Posts: 2 Location: US
|
I am using WBI5.0 with latest CSD's, and I am attempting to place a PDF file onto a queue, and have a message flow place the binary PDF file into a database (among other things). The message has XML tags on the outside, and a binary file on the inside, and I do some basic work based on the xml tags, but when I attempt to place the PDF file into a database, it appears the binary data has been corrupted.
What should I check? |
|
Back to top |
|
 |
EddieA |
Posted: Tue Nov 30, 2004 9:38 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Well, the first question should be. Is it "legal" to have binary data in XML without it being encoded someway into "normal" characters. If it's left as binary, then the first problem I can see is that if any byte value translate to <, >, &, or any other "known" XML characters, the parser will automatically change them to the <, >, &, etc. representations.
And don't even think about the implications of converting between code pages.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
JLRowe |
Posted: Tue Nov 30, 2004 4:45 pm Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
You need to base64 encode the binary data. |
|
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
|
|
|
|