feat: Download s3 file as stream in Python and TS (#3099)

This commit is contained in:
Guillaume Bouvignies
2024-01-29 14:49:08 +01:00
committed by GitHub
parent cbfa5ff887
commit 6160889793
6 changed files with 241 additions and 53 deletions

View File

@@ -1259,7 +1259,7 @@ async fn read_object_chunk(
) -> error::Result<Vec<u8>> {
let s3_object = s3_client
.get_object()
.range(format!("bytes={}-{}", from_byte, from_byte + length).to_string())
.range(format!("bytes={}-{}", from_byte, from_byte + length - 1).to_string())
.bucket(s3_bucket)
.key(file_key)
.send()