bson | binary functions
This subsection describes binary functions. BSON binary values are two-part values: They have a subtype, which is defined in the BSON Specification, and binary content. The functions described below enable you to extract the content from a BSON binary value (binData-content), find out about the subtype of this binary value (binData-subtype), and create a binary value based on the subtype and content parameters (to-binData).
Important: The bson functions are compatible only with the Built-In transformation language.
The binData-content function (see screenshot below) enables you to extract content from a BSON binary value. |
BSON binary values have a subtype that defines a type of data stored in the byte array. The list of BSON subtypes is given in the BSON Specification. The binData-subtype function (see screenshot below) extracts the subtype from a BSON binary value. |
The to-binData function (see screenshot below) enables you to create a BSON binary value by supplying the subtype and content parameters. |