Loading TOC...

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"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.