xdmp:binary-size

xdmp:binary-size(
   [$source as binary()?]
) as xs:unsignedLong?

Summary

Returns the size of the data, in bytes, represented by a binary node.

Parameters
source A binary node whose data size will be returned.

Example

  xdmp:binary-size(fn:doc("example.mpeg")/binary())
  => the size (in bytes) of "example.mpeg"
Powered by MarkLogic Server | Terms of Use | Privacy Policy