Posted: Mon Nov 27, 2017 3:45 pm Post subject: convert blob to clob
Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
HI to all,
On IIB10 I have this line converting body to BLOB and putting on Q:
SET ENV.msgBlob = CAST(ASBITSTREAM(inRef.DFDL SET inRef.Properties.MessageSet TYPE inRef.Properties.MessageType) AS BLOB);
On a JAVA app I need to convert back to string and insert to oracle as CLOB.
Anyone as a quick way doing that?
First on JAVA I try getting CCSID, but when running this: String codePage = myMsg.getStringProperty(MQC.CCSID_PROPERTY);
I get: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2471'.
Then (when i get codePage to work) I am thinking to convert the body-string with codePage.
Anyone has any idea why getting 2471?
Any better ideas how to convert?
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