|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
How to model a serise of bytes byte-array in a message set |
« View previous topic :: View next topic » |
Author |
Message
|
mgm |
Posted: Sun Jun 12, 2011 10:14 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Sun Jun 12, 2011 7:17 pm Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Mon Jun 13, 2011 12:20 am Post subject: |
|
|
 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 |
|
 |
|
|
|
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
|
|
|
|