Skip to content

Add Storage.create() method which takes a restartable input stream #2620

Closed

Description

@garrettjonesgoogle

In #2359 , retries had to be turned off for Blob create(BlobInfo blobInfo, InputStream content, BlobWriteOption... options) because the InputStream can only be consumed once.

We should create a new abstraction named RetryableInputStream which can produce a new input stream on the original content, and add a new create method which accepts it, so that it is easier for users to create blobs without loading the entire content into memory.

Activity

  1. added
    api: storageIssues related to the Cloud Storage API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Nov 14, 2017
  2. yihanzhen commented on Jan 25, 2018

    @yihanzhen
    Contributor

    Move to backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions