Author |
Message
|
phanisasi |
Posted: Mon Oct 03, 2011 4:38 am Post subject: convert blob file to string? |
|
|
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 |
|
 |
bruce2359 |
Posted: Mon Oct 03, 2011 4:42 am Post subject: |
|
|
 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 |
|
 |
smdavies99 |
Posted: Mon Oct 03, 2011 4:49 am Post subject: Re: convert blob file to string? |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Oct 03, 2011 4:51 am Post subject: Re: convert blob file to string? |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Mon Oct 03, 2011 5:21 am Post subject: Re: convert blob file to string? |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Oct 03, 2011 5:24 am Post subject: Re: convert blob file to string? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Oct 03, 2011 6:00 am Post subject: Re: convert blob file to string? |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
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 |
|
 |
Vitor |
Posted: Mon Oct 03, 2011 6:04 am Post subject: Re: convert blob file to string? |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Mon Oct 03, 2011 6:09 am Post subject: Re: convert blob file to string? |
|
|
 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 |
|
 |
phanisasi |
Posted: Mon Oct 03, 2011 10:50 pm Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Mon Oct 03, 2011 11:06 pm Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Oct 04, 2011 2:56 am Post subject: |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Tue Oct 04, 2011 4:37 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
Vitor |
Posted: Tue Oct 04, 2011 4:58 am Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Tue Oct 04, 2011 11:56 am Post subject: |
|
|
 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 |
|
 |
|