xdmp.binarySize( [source as binary()?] ) as (Number|String)?
Returns the size of the data, in bytes, represented by a binary node.
Parameters | |
---|---|
source | A binary node whose data size will be returned. |
var bin = xdmp.documentGet("http://www.my-stuff.com/example.mpeg"); xdmp.binarySize(fn.head(bin).root); => the size (in bytes) of "example.mpeg"