<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.externalBinaryPath.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.externalBinaryPath</api:function-name><api:suggest>xdmp.externalbinarypath</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>externalbinarypath</api:suggest><api:function-link mode="xquery" fullname="xdmp:external-binary-path">/apidoc/8.0/xdmp:external-binary-path.xml</api:function-link><api:function mode="javascript" name="externalBinaryPath" 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.externalBinaryPath"><api:summary>
  Return the path to the external file associated with an external
  binary document.
</api:summary><api:params><api:param name="source" type="binary()"><api:param-description>
    The external binary node for which to retrieve the external file path.
  </api:param-description><api:param-name>source</api:param-name><api:param-type>binary()</api:param-type></api:param></api:params><api:return>String?</api:return><api:usage>
  <p xmlns="http://www.w3.org/1999/xhtml">
   If the source binary node does not represent an external binary
   binary document, <code>XDMP-ARG</code> is thrown. That is, the
   source binary node must have been created by
   <a href="./xdmp:external-binary"><code>xdmp:external-binary</code></a>. Use
   <a href="./xdmp:binary-is-external"><code>xdmp:binary-is-external</code></a>
   to test whether or not a node represents an external binary.
  </p>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.externalBinaryPath(
  cts.doc("/movies/external-movie-1.mp4").xpath("/binary()"));

  =&gt; /space/binaries/movies/movie-1.mp4
</pre></api:example></api:function></api:function-page>