Posted: Mon Mar 03, 2008 8:03 am Post subject: Help with converting base64 encoded string from VB6
Centurion
Joined: 16 Aug 2005 Posts: 114 Location: Burlington, NC USA
WMB 6.0.0.3 on AIX 5.3
Message coming into broker from a queue that is populated by a Web Service that gets input from a VB6 application.
My message flow has successfully decoded the base64 string into a BLOB; however when I write this BLOB as a message to a queue for a down line server to process the data is still UTF-16(unicode; two-byte). How can I convert the character code set of the data to 819.
I have tried CAST(... AS BLOB CCSID OutputRoot.MQMD.CodedCharSetId) which 819, also MQRFH2.CodedCharSetId and MQRFH2.NameValueCCSID to no avail.
First you must cast the Blob as char giving it the correct char set for the incomming blob.
Then you can cast the char to a blob for the output giving the target CCSID.
You might want to set the target CCSID on OutputRoot.Properties and the MQRFH2.CodedCharSetId.
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