S3_File.read_bytes
read_bytes
Aliases: load bytes
, open bytes
Documentation
Reads all bytes in this file into a byte vector.
Returns
- The contents of the file as a vector of bytes.
Errors
- If the bucket does not exist, an
S3_Bucket_Not_Found
error is thrown. - If the target is a directory, an
Illegal_Argument
error is thrown. - If the file does not exist, a
File_Error.Not_Found
error is thrown. - If the access to the object is forbidden, an
S3_Error.Access_Denied
error is thrown.