GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Errors when downloading gzipped objects in chunks from GCS · Issue #1009 · googleapis/google-api-java-client

Errors when downloading gzipped objects in chunks from GCS #1009

New issue
Copy link
New issue
Copy link
Closed
Closed
Errors when downloading gzipped objects in chunks from GCS#1009
Copy link
Assignees
sduskis
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.

Description

@mziccard
mziccard
opened on May 5, 2016
Issue body actions

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()?

Activity

  1. Capstan commented on Jun 16, 2016

    @Capstan
    Capstan
    on Jun 16, 2016
    More actions

    Or have it notice there's a Content-Range header and disable it itself.

  2. mziccard commented on Sep 30, 2016

    @mziccard
    mziccard
    on Sep 30, 2016
    ContributorAuthor
    More actions

    Any updates on this?

  3. dalbani commented on Oct 9, 2017

    @dalbani
    dalbani
    on Oct 9, 2017
    More actions

    Hi, I'm very much new to this GCS library and I'm kind of surprised that this simple use case is not currently supported.
    Well, a workaround has indeed been implemented AFAIK but I still fail to see how to properly handle reading a gzip-compressed blob from a ReadChannel, as in:

    ReadChannel readChannel = storage.reader(blobId);

    How can I then determine that the data coming out this channel is actually encoded (or not) using GZIP?
    Thanks for your help.

  4. mattwhisenhunt
    added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Jan 8, 2018
  5. JustinBeckwith
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    🚨This issue needs some love.
    and removed
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Jun 7, 2018
  6. ajaaym commented on Jan 24, 2019

    @ajaaym
    ajaaym
    on Jan 24, 2019
    Contributor
    More actions

    @mziccard do you expect the chunks to be of compressed bytes or non compressed bytes?

  7. sduskis commented on Mar 8, 2019

    @sduskis
    sduskis
    on Mar 8, 2019
    More actions

    I'm going to close this due to staleness. Please open a new issue if this is still a problem.

  8. sduskis
    closed this as completedon Mar 8, 2019
  9. JustinBeckwith
    assigned
    sduskis
    on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sduskis
    sduskis

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.