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 TO CHARACTER

Post new topic  Reply to topic
 BLOB TO CHARACTER « View previous topic :: View next topic » 
Author Message
arunkumar1989
PostPosted: Mon Nov 24, 2014 11:02 pm    Post subject: BLOB TO CHARACTER Reply with quote

Voyager

Joined: 21 Nov 2012
Posts: 98
Location: Chennai

Hi all,

I`m getting a blob value from Oracle table, I need to convert that into Character.

My Actual requirement is need to find length of the field values.

The field value is blob, as per my knowledge we cannot find length from blob,
so that i`m trying to convert that blob to character.


Thanks,
Arun
_________________
Being in a crowd when you are alone is ignorance. Enlightenment is being alone in a crowd; a feeling of oneness in a crowd.
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Mon Nov 24, 2014 11:15 pm    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

I think you can be yourself in a crowd and feel individual, but still dont have to be alone, and even enjoy the different opinions.
And "enlightenment" I think does not come from the feeling of "oneness", but from the desire to improve.
Back to top
View user's profile Send private message Visit poster's website
smdavies99
PostPosted: Mon Nov 24, 2014 11:20 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.

The LENGTH function does work on a BLOB Data type

However that is a red-herring

There are many examples in this forum of coverting a BLOB to a CHAR using CAST
_________________
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
kimbert
PostPosted: Tue Nov 25, 2014 1:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You are correct - you cannot know how many characters are in the BLOB without performing a CAST to CHARACTER. Unless you are 100% certain that the target CCSID will be a single-byte encoding.
Quote:
My Actual requirement is need to find length of the field values.
Does a single BLOB contain two or more fields? If so, you should probably create a DFDL model to describe the structure.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
arunkumar1989
PostPosted: Tue Nov 25, 2014 3:36 am    Post subject: Reply with quote

Voyager

Joined: 21 Nov 2012
Posts: 98
Location: Chennai

sebastia
_________________
Being in a crowd when you are alone is ignorance. Enlightenment is being alone in a crowd; a feeling of oneness in a crowd.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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