expath-file:read-binary

Reads the contents of a file as binary octets.

read-binary($file as xs:string) ➔ xs:base64Binary

Arguments

 

$file

xs:string

The file to be read

Result

xs:base64Binary

Details

Namespace: http://expath.org/ns/file

Notes on the Saxon implementation

Implemented since Saxon 9.5; available whether or not support for XPath 3.0 is enabled