Posted: Fri Mar 07, 2008 11:54 pm Post subject: I have this HL7 Data in Environment - Need to base64 encode
Centurion
Joined: 16 Aug 2005 Posts: 114 Location: Burlington, NC USA
WMBv6.0.0.3
Data is in Envirnonment.HL7Data.HL7Work. Domain XMLNSC.
Here is what I have tried:
DECLARE HL7BLOB BLOB ASBITSTREAM(Environment.HL7Data.HL7Work);
SET Environment.HL7Data.HL7Base64 = base64Encode(Environment.HL7Data.HL7Work);
CREATE PROCEDURE base64Encode(IN source BLOB)
RETURNS CHARACTER
LANGUAGE JAVA
EXTERNAL NAME "com.ibm.broker.javacompute.Base64.encode";
Also have tried:
DECLARE HL7BLOB BLOB ASBITSTREAM(Environment.HL7Data.HL7Work ENCODING InputRoot.Properties.Encoding CCSID InputRoot.Properties.CodedCharSetId);
All I get is NULL.
I even added DECLARE options INTEGER BITOR(ValidateContent, ValidateValue); Still NULL.
You have likely done the incorrect thing when copying your Input tree into Environment, such that the elements in the tree are no longer associated with a parser and thus can't be asbitstreamed. _________________ I am *not* the model of the modern major general.
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