file:read-binary
Returns the binary content of a file.
read-binary($file as xs:string, $offset as xs:integer?:=0, $length as xs:integer?:=()) ➔ xs:base64Binary
Arguments | ||||
| $file | xs:string | Path to file | |
| $offset | xs:integer? | := 0 | 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
Saxon availability
Available in XPath 2.0 and later versions. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE. Available for all platforms.