<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.binaryIsSmall.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.binaryIsSmall</api:function-name><api:suggest>xdmp.binaryissmall</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>binaryissmall</api:suggest><api:function-link mode="xquery" fullname="xdmp:binary-is-small">/apidoc/8.0/xdmp:binary-is-small.xml</api:function-link><api:function mode="javascript" name="binaryIsSmall" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.binaryIsSmall"><api:summary>
  Check whether a binary node is a small binary.
</api:summary><api:params><api:param name="source" type="binary()"><api:param-description>
    A binary node
  </api:param-description><api:param-name>source</api:param-name><api:param-type>binary()</api:param-type></api:param></api:params><api:return>Boolean</api:return><api:usage>
  <p xmlns="http://www.w3.org/1999/xhtml">
   A small binary is one whose size is below the large size threshold. See
   <a href="./admin:database-set-large-size-threshold">
   <code>admin:database-set-large-size-threshold</code></a>.
   For details, see "Working With Binary Documents" in the
   <em>Application Developer's Guide</em>.
  </p>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  xdmp.binaryIsSmall(cts.doc("/logo.gif").root)

  =&gt; true if the binary content is below the large size threshold.
</pre></api:example></api:function></api:function-page>