saxon:read-binary-resource

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

Arguments

 

$uri

xs:string

The URI to be dereferenced

Result

xs:base64Binary

Namespace

http://saxon.sf.net/

Notes on the Saxon implementation

Available since Saxon 9.7.

Details

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 xs:base64binary.

The result can be used by functions in the EXPath binary module.

See also:

saxon:query()