xdmp.externalBinaryPath( $source as binary() ) as String?
Return the path to the external file associated with an external binary document.
|$source||The external binary node for which to retrieve the external file path.|
If the source binary node does not represent an external binary
XDMP-ARG is thrown. That is, the
source binary node must have been created by
to test whether or not a node represents an external binary.
xdmp.externalBinaryPath( cts.doc("/movies/external-movie-1.mp4").xpath("/binary()")); => /space/binaries/movies/movie-1.mp4