The ASBITSTREAM function serializes the Message Tree (see options and syntax for finer details).
The same way the CREATE...PARSE deserializes and parses the bitstream into a Message Tree.
ASBITSTREAM takes a message tree ( or a subtree within a message tree ) and outputs a BLOB.
Two things about ASBITSTREAM that novice users often forget:
- ASBITSTREAM returns a BLOB. There is no need to CAST the result of ASBITSTREAM to BLOB.
- If called immediately after an input node, ASBITSTREAM(InputBody) will use very little CPU. Message broker 'knows' that the message tree has not been changed since it was created from the bitstream. Therefore, it can simply return the original bitstream.
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