|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Blob data |
« View previous topic :: View next topic » |
Author |
Message
|
Sam Uppu |
Posted: Mon Oct 10, 2011 5:43 pm Post subject: Blob data |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Hi Guys,
I have some BLOB data like :'3230313131303130313233343536'.
I dont want to cast it to char, but want to set a variable in environment tree with this blob value.
ie., Environment.Data.id = '3230313131303130313233343536'.
Environment.Data.id is a character field.
I am getting error saying cannot assign BLOB to CHARACTER field.
I was trying to use TRIM function with this value. Still it gives me the sam error.
Can you guys pls throw light on this.
Sam |
|
Back to top |
|
 |
gag_nm |
Posted: Mon Oct 10, 2011 8:27 pm Post subject: |
|
|
Centurion
Joined: 16 Oct 2008 Posts: 102
|
Even i faced similar case, to save BLOB data in Environment Variable .
i was having normal incoming request message in XML format.
i used BITSTREAM function to convert into BLOB and save in Environment Varibale.
SET Environment.Variables.Message.BLOBMSG = BITSTREAM(OutputRoot.XMLNS); |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Oct 10, 2011 10:37 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
gag_nm wrote: |
Even i faced similar case, to save BLOB data in Environment Variable .
i was having normal incoming request message in XML format.
i used BITSTREAM function to convert into BLOB and save in Environment Varibale.
SET Environment.Variables.Message.BLOBMSG = BITSTREAM(OutputRoot.XMLNS); |
Please do not use BITSTREAM.
It have been deprecated for ... well since at least 6.0.0.0.
You should be using ASBITSTREAM instead.
Unless you have created the Environment.... with the BLOB as its domain you might tun into problems later if you need to domain attributes. This may not be relevant for BLOB objects but if you were using XMLNSC, you have found a way to lose ALL the XMLNSC.Attributes etc you may have on the input message. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
gag_nm |
Posted: Tue Oct 11, 2011 2:35 am Post subject: |
|
|
Centurion
Joined: 16 Oct 2008 Posts: 102
|
thanks for your information.
i have changed to ASBITSTREAM |
|
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
|
|
|
|