Given a URI, this function fetches the contents of the resource identified by the URI and returns it as a binary value.
read-binary-resource($uri as xs:string) ➔ xs:base64Binary
The URI to be dereferenced
Notes on the Saxon implementation
Available since Saxon 9.7.
This function takes as input a string containing a URI. It fetches the resource at that
URI as a binary object, and returns the binary object represented as an instance of
The result can be used by functions in the EXPath binary module.