file:read-binary

Returns the content of a file in its Base64 representation.

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

Arguments

 

$file

xs:string

Path to file

Result

xs:base64Binary

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

Arguments

 

$file

xs:string

Path to file

 

$offset

xs:integer

Byte offset into the file for reading or writing

Result

xs:base64Binary

read-binary($file as xs:string, $offset as xs:integer, $length as xs:integer) ➔ xs:base64Binary

Arguments

 

$file

xs:string

Path to file

 

$offset

xs:integer

Byte offset into the file for reading or writing

 

$length

xs:integer

Byte length of data to be returned

Result

xs:base64Binary

Namespace

http://expath.org/ns/file

Links to specifications

EXPath File Module

Saxon availability

Available whether or not support for XPath 3.0 is enabled. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE.