Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp:binary-is-small

xdmp:binary-is-small(
   $source as binary()
) as xs:boolean

Summary

Check whether a binary node is a small binary.

Parameters
source A binary node

Usage Notes

A small binary is one whose size is below the large size threshold. See admin:database-set-large-size-threshold. For details, see "Working With Binary Documents" in the Application Developer's Guide.

Example

  xdmp:binary-is-small(doc("/logo.gif")/binary())

  => true if the binary content is below the large size threshold.

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