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 » convert blob file to string?

Post new topic  Reply to topic Goto page 1, 2  Next
 convert blob file to string? « View previous topic :: View next topic » 
Author Message
phanisasi
PostPosted: Mon Oct 03, 2011 4:38 am    Post subject: convert blob file to string? Reply with quote

Newbie

Joined: 13 Sep 2011
Posts: 8

use fle ip op and compute node ...how can we c onvert blob file to string?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Oct 03, 2011 4:42 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9472
Location: US: west coast, almost. Otherwise, enroute.

Moved to Message Broker forum.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Oct 03, 2011 4:49 am    Post subject: Re: convert blob file to string? Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

phanisasi wrote:
use fle ip op and compute node ...how can we c onvert blob file to string?


Can you give us an example of your input and desired output. However, did you search for the term serialisation/serialization in this forum? That might be all that you want. In many cases, because this is 'the way we do it in Java', serialising the input stream might not be the best way to do whatever it is you want to do in broker.
_________________
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
Vitor
PostPosted: Mon Oct 03, 2011 4:51 am    Post subject: Re: convert blob file to string? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

phanisasi wrote:
use fle ip op and compute node ...how can we c onvert blob file to string?


Use this file nodes to read and write the file.

Write ESQL in the compute node to convert it as needed.

This is WMB 101.

You should also define the difference between a blob and a string in this context. A BLOB in WMB terms is a file which has no WMB parser associated with it; so it could easily obtained from a file containing text and can be written out of WMB as BLOB but still be string in the output file. If you mean blob in terms of a database blob (like a JPEG or other binary file) then you need to take some action to represent that as a string.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Oct 03, 2011 5:21 am    Post subject: Re: convert blob file to string? Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Vitor wrote:
phanisasi wrote:
use fle ip op and compute node ...how can we c onvert blob file to string?


Use this file nodes to read and write the file.

Write ESQL in the compute node to convert it as needed.

This is WMB 101.


phanisasi Have you taken and achieved passage in the IBM-provided training? If not, why are you waiting to take the training?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Oct 03, 2011 5:24 am    Post subject: Re: convert blob file to string? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
why are you waiting to take the training?


Because they can find good ways to solve ESQL problems independently...

http://www.mqseries.net/phpBB2/viewtopic.php?p=313252
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Oct 03, 2011 6:00 am    Post subject: Re: convert blob file to string? Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Vitor wrote:
lancelotlinc wrote:
why are you waiting to take the training?


Because they can find good ways to solve ESQL problems independently...

http://www.mqseries.net/phpBB2/viewtopic.php?p=313252


This may be true for people that can spell and use Google without adult supervision. But if u us txt msg no ta shun, it my nt wrk 4 u.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Oct 03, 2011 6:04 am    Post subject: Re: convert blob file to string? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
But if u us txt msg no ta shun, it my nt wrk 4 u.


True. But given the OP contradicted my response on his previous solution, I doubt minor issues like spelling, grammer or facts will be a problem.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Oct 03, 2011 6:09 am    Post subject: Re: convert blob file to string? Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Vitor wrote:
lancelotlinc wrote:
But if u us txt msg no ta shun, it my nt wrk 4 u.


True. But given the OP contradicted my response on his previous solution, I doubt minor issues like spelling, grammer or facts will be a problem.


So funny. I often listen to the Dr. Laura program on XM satellite radio. Actually, I subscribe to her podcast. People call in and tell her a problem, she offers a solution, and they invariably say "I did that already." or "Do you think that would help?" Dr. Laura says, "Yes, thats why I suggested it!"
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
phanisasi
PostPosted: Mon Oct 03, 2011 10:50 pm    Post subject: Reply with quote

Newbie

Joined: 13 Sep 2011
Posts: 8

i tried like this .but iam not getting.

CAST(InputRoot.BLOB.BLOB AS CHARACTER CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding);
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Oct 03, 2011 11:06 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.

There are many, many other posts here asking this same question. Have you looked at them?
I know for a certainty, that the answer is there.

"seek and ye shall find"
Matthew 7-7.
_________________
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
Vitor
PostPosted: Tue Oct 04, 2011 2:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

phanisasi wrote:
i tried like this .but iam not getting.


Not getting what? Satisfaction? I don't get no satisfaction either.

It would help if you mentioned:

a) What you are getting (output, errors, etc)
b) Why you think the input would yield directly to a string

It would help even more if you followed the advice given earlier:

- search this forum
- get some training
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Oct 04, 2011 4:37 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Take it easy on him, Vitor. Its hard to be fully descriptive with a text message from a mobile.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Oct 04, 2011 4:58 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
Its hard to be fully descriptive with a text message from a mobile.


My converson to a grumpy old man is fully under way. I don't speak young person, and have to apply cryptographic techniques to texts from my nieces.

Thankfully I can usually break them using the knowledge that the phase "need money" is contained somewhere.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Oct 04, 2011 11:56 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I wasn't aware that needing money was a 'phase'. If it is, then mine seems to be lingering on a bit. ( I'm discounting the possibility that man of Vitor's age and experience would introduce a typo into an electronically submitted document... )
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » convert blob file to string?
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.