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

Post new topic  Reply to topic
 Blob data « View previous topic :: View next topic » 
Author Message
Sam Uppu
PostPosted: Mon Oct 10, 2011 5:43 pm    Post subject: Blob data Reply with quote

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
View user's profile Send private message
gag_nm
PostPosted: Mon Oct 10, 2011 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Mon Oct 10, 2011 10:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
gag_nm
PostPosted: Tue Oct 11, 2011 2:35 am    Post subject: Reply with quote

Centurion

Joined: 16 Oct 2008
Posts: 102

thanks for your information.

i have changed to ASBITSTREAM
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 » Blob 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.