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