ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Binary data imbedded in xml getting converted somehow

Post new topic  Reply to topic
 Binary data imbedded in xml getting converted somehow « View previous topic :: View next topic » 
Author Message
Mike Ryan
PostPosted: Tue Nov 30, 2004 8:38 am    Post subject: Binary data imbedded in xml getting converted somehow Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Tue Nov 30, 2004 9:38 am    Post subject: Reply with quote

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 &lt, &gt, &amp, 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
View user's profile Send private message
JLRowe
PostPosted: Tue Nov 30, 2004 4:45 pm    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

You need to base64 encode the binary data.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Binary data imbedded in xml getting converted somehow
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.