|-
| width='120' | '''Signatures'''
|{{Func|file:read-binary|$path as xs:string|xs:base64Binary}}<br />{{Func|file:read-binary|$path as xs:string, $offset as xs:integer|xs:base64Binary}}<br />{{Func|file:read-binary|$path as xs:string, $offset as xs:integer, $length as xs:integer|xs:base64Binary}}
|-
| '''Summary'''
|Reads the binary content of the file specified by {{Code|$path}} and returns it as [[Streaming Module|streamable]] {{Code|xs:base64Binary}}.<br />The optional parameters {{Code|$offset}} and {{Code|$length}} can be used to read chunks of a file.
|-
| '''Errors'''
|{{Error|FILE0001|#Errors}} the specified file does not exist.<br />{{Error|FILE0004|#Errors}} the specified path is a directory.{{Error|FILE0006|#Errors}} the offset or length is negative, or the chosen values would exceed the file bounds.<br />{{Error|FILE9999|#Errors}} the operation fails for some other reason.<br />
|-
| '''Examples'''