MarkLogic 12 EA 1 Product Documentation
xdmp.binarySize

xdmp.binarySize(
   [source as binary()?]
) as (Number|String)?

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

var bin = xdmp.documentGet("http://www.my-stuff.com/example.mpeg");
xdmp.binarySize(fn.head(bin).root);

  => the size (in bytes) of "example.mpeg"
Powered by MarkLogic Server | Terms of Use | Privacy Policy