Loading TOC...

MarkLogic Server 11.0 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"

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