Skip to content

Errors when downloading gzipped objects in chunks from GCS #1009

Closed
@mziccard

Description

@mziccard

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 is gzip). When we attempt to read
the GZIPInputStream given by getContent() 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 calling getContent()?

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions