1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
I understand that you’re facing an issue while reading a GZIP file from S3 in .NET SDK.
When using AWS SDK for .NET there is no direct support for specifying byte ranges in the “GetObjectRequest” class, [1]. This could explain why, you’re receiving "Error GZIP header, first magic byte doesn't match" exception. Similar issue is pointed out here [2].
To read the file in byte ranges try specifying the range of bytes you want to download in your code and add the Range header to the request [3].
=========
[1]https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html#API_GetObject_RequestSyntax
Relevant content
- Accepted Answerasked 7 years ago
- asked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 7 months ago