Errors when downloading gzipped objects in chunks from GCS #1009
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This issue emanates from an issue posted here.
We are trying to get a gzipped GCS file in chunks. The problem comes when we try to read the response content. The problem seems to be related with the fact that response.getContent() automatically creates a
GZIPInputStream
on top of the raw stream (if the content encoding isgzip
). When we attempt to readthe
GZIPInputStream
given bygetContent()
we get an error as that stream only holds one chunk of the original file.Would it be possible to somehow disable the wrapping of the response content into a
GzipInputStream
when callinggetContent()
?The text was updated successfully, but these errors were encountered: