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 » How to convert XMLNSC to BLOB or Bytes

Post new topic  Reply to topic
 How to convert XMLNSC to BLOB or Bytes « View previous topic :: View next topic » 
Author Message
prasadzkv
PostPosted: Mon Aug 29, 2016 6:18 am    Post subject: How to convert XMLNSC to BLOB or Bytes Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Aug 29, 2016 6:36 am    Post subject: Re: How to convert XMLNSC to BLOB or Bytes Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 29, 2016 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message
prasadzkv
PostPosted: Mon Aug 29, 2016 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
timber
PostPosted: Tue Aug 30, 2016 12:36 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 30, 2016 3:44 am    Post subject: Reply with quote

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
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 » How to convert XMLNSC to BLOB or Bytes
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.