Posted: Thu Mar 08, 2007 2:21 am Post subject: Convert BLOB to String in JavaCompute Node
Acolyte
Joined: 18 Oct 2006 Posts: 65
I am trying to convert the BLOB data in an incoming message to a String within the Java Compute Node. I create the incoming message on a previous flow and attach the string as a byte array (the "data" variable is the String to be inserted):
Ok thanks but my code was correct in the casting aspect, the problem was that the "MbElement blobData = blob.getLastChild()" did not contain the last child of the BLOB node. It had to be replaced with:
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