Author |
Message
|
prasadzkv |
Posted: Mon Aug 29, 2016 6:18 am Post subject: How to convert XMLNSC to BLOB or Bytes |
|
|
Novice
Joined: 13 Jul 2016 Posts: 21 Location: Chennai
|
Team,
Could you please help me! How to convert XMLNSC to BLOB or Bytes?
We can able to convert BLOB message to bytes and from bytes to XMLNSC
BLOB -> BYTES -> XMLNSC.
Thanks in advance!
 |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 29, 2016 6:36 am Post subject: Re: How to convert XMLNSC to BLOB or Bytes |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
prasadzkv wrote: |
Could you please help me! How to convert XMLNSC to BLOB or Bytes? |
Why? What use is that to you?
If you're going to do it anyway, look up the ASBITSTREAM function.
prasadzkv wrote: |
We can able to convert BLOB message to bytes and from bytes to XMLNSC |
If you need to go the other way, you need to CREATE a new XMLNSC message tree with the PARSE option. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 29, 2016 8:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why do you need to do this in code?
The node properties of input and output will handle it for you. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
prasadzkv |
Posted: Mon Aug 29, 2016 8:27 pm Post subject: |
|
|
Novice
Joined: 13 Jul 2016 Posts: 21 Location: Chennai
|
Thanks Vitor and Jeff for the reply,
My requirement is through JCN(Java Compute Node) input data(XML) convert as BLOB and need to store in to DB(Oracle) as well as read the BLOB data form DB and convert as XML.
Could you please let us know/Guide if you have any piece of code snippet.
Thanks in advance. |
|
Back to top |
|
 |
timber |
Posted: Tue Aug 30, 2016 12:36 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
A ResetContentDescriptor node can do this for you.
If you really want to do it in code, there are methods available on MbElement to parse a BLOB into a message tree or vice versa. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 30, 2016 3:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor's answer has given you what you need, and as timber says - the Java docs for the MBElement tell you how to do this in Java. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|