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 » How to model a serise of bytes byte-array in a message set

Post new topic  Reply to topic Goto page Previous  1, 2, 3
 How to model a serise of bytes byte-array in a message set « View previous topic :: View next topic » 
Author Message
mgm
PostPosted: Sun Jun 12, 2011 10:14 am    Post subject: Reply with quote

Apprentice

Joined: 14 Dec 2007
Posts: 48
Location: anywhere

mqjeff wrote:
mgm wrote:
So how to get around this and achieve what I am looking for ?


There are two ways.

One, construct the BLOB string using binary values.

Two, construct the blob string using character values and then cast it as a blob string - this requires the correct encoding (at least).

Which one are you trying to use?


I tried the second but it didn't work, I used the target server ccsid and encoding as well.

I'll try the first option, hopefully it works
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Sun Jun 12, 2011 7:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mqjeff wrote:

Which one are you trying to use?


If you notice, the values he provided are the decimal values (signed) of the equivalent byte for each of the bytes in the array.

At this point I would suggest some Java procedure to parse the string on token ',' and create the byte array, byte by byte. He can then return the array as blob.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Jun 13, 2011 12:20 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

OK - I have some important new information to contribute to this discussion. The only way to treat binary data as raw bytes is to use the CWF physical format. That's not too bad, because the model is simple, and CWF can do the length-reference trick just as easily as TDS. The important point is that ( contrary to what I said before ) TDS cannot handle a string of un-encoded raw bytes.

mgm: Apologies for any confusion / wasted time.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3 Page 3 of 3

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to model a serise of bytes byte-array in a message set
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.