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 » encoded data

Post new topic  Reply to topic
 encoded data « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Mon Oct 03, 2005 9:55 am    Post subject: encoded data Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

i get a 64 base encoded binary data as an input xml.

how do i convert this back to binary? is there special decoding that is needed or can i cast it to blob and assign the values to a hexbinary field? my output needs to be MRM.
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Oct 03, 2005 10:02 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

base64 encoding is not straight hex-to-binary.

but in v5, there is support for base64 encoded data.
http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.etools.mft.doc/ad15220_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Mon Oct 03, 2005 10:47 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

even if i parse the data thats coming in as 64 base encoded data. how do i decode it back to output as binary?
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Oct 03, 2005 10:52 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I hope you're not intending to include raw binary data inside XML.

That won't work.

Otherwise, the answer is the same as anything else in broker. Copy the logical data to a different element that has a different physical rendering.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Mon Oct 03, 2005 4:12 pm    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

am sry not sure if i got that. how is the decoding taken care of?
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Mon Oct 03, 2005 4:19 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

paustin_ours wrote:
am sry not sure if i got that. how is the decoding taken care of?


The broker does it, the same way that it does EBCDIC to Unicode to ASCII.

Remember that broker always converts *everything* into Unicode internally. So when you go to access the Logical Message Tree, all the data will be in Unicode.

So in order to support messages that have data in a base64 encoded physical format, Broker must be able to decode that into Unicode. And then reencode that Unicode into whatever other physical format you instruct it to.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » encoded data
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.