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 » To Insert Xml into Blob field in oracle DB via esql

Post new topic  Reply to topic
 To Insert Xml into Blob field in oracle DB via esql « View previous topic :: View next topic » 
Author Message
Laaziya
PostPosted: Thu Mar 06, 2014 5:55 am    Post subject: To Insert Xml into Blob field in oracle DB via esql Reply with quote

Novice

Joined: 05 Mar 2014
Posts: 13

Hi Everyone,

I need to insert the XML into blob field in oracle db. Tried below query, it is resulting with invalid hexadecimal conversion. Can any one help us through...

Code:
DECLARE wholeMsgBlob BLOB

ASBITSTREAM(InputRoot.XMLNSC,

InputRoot.Properties.Encoding,

InputRoot.Properties.CodedCharSetId );

DECLARE wholeMsgChar CHAR

CAST(wholeMsgBlob AS CHAR CCSID InputRoot.Properties.CodedCharSetId);

SET XmlBlob = wholeMsgChar;
Back to top
View user's profile Send private message
kartheek.sp
PostPosted: Thu Mar 06, 2014 6:15 am    Post subject: Reply with quote

Novice

Joined: 05 Apr 2011
Posts: 21
Location: Pune

Try with this

Code:
DECLARE wholeMsgBlob BLOB ASBITSTREAM(InputRoot.XMLNSC,InputRoot.Properties.Encoding,InputRoot.Properties.CodedCharSetId );
         DECLARE wholeMsgChar CHAR CAST(wholeMsgBlob AS CHAR CCSID InputRoot.Properties.CodedCharSetId);
         SET OutputRoot.XMLNSC.StoreMessage.(XMLNSC.CDataField)InputXML = wholeMsgChar;

_________________
Siva
***********
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 » To Insert Xml into Blob field in oracle DB via esql
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.