Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add downloadTo to Storage Client #2107

Closed
frankyn opened this issue Jun 1, 2017 · 3 comments
Closed

[Feature Request] Add downloadTo to Storage Client #2107

frankyn opened this issue Jun 1, 2017 · 3 comments
Assignees
Labels
api: storage Issues related to the Cloud Storage API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@frankyn
Copy link
Member

frankyn commented Jun 1, 2017

Feature Request

The Java Cloud Storage client google-cloud-storage has a sample to download a Blob (shown below). The feature request is to add this functionality into the sample shown into an additional method downloadTo for Class Blob to reduce complexity of downloading a blob using the Java Storage client. At the moment other clients use this approach and allow a user to download a given Blob to a specified file.

xxnxbgjccop

Language Comparison:

In other client libraries (google-cloud-ruby) there exists a method to download a Blob to a specified file.

h4q4mswiyt0

Another example using .NET:

bbfhutvhz08

Example of usage

try {
  String bucketName = ”BUCKET_NAME”;
  String blobName = ”BLOB_NAME”;
 
  Blob blob = BlobId.of(bucketName, blobName);
  Path path = FileSystems.getDefault().getPath("output.ext”);
 
  blob.downloadTo(path);
} catch (IOException io) {
   //...
}
@frankyn frankyn added android api: storage Issues related to the Cloud Storage API. and removed android labels Jun 1, 2017
@garrettjonesgoogle garrettjonesgoogle added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Jun 2, 2017
@frankyn
Copy link
Member Author

frankyn commented Aug 7, 2017

@garrettjonesgoogle is this being prioritized this quarter?

@garrettjonesgoogle
Copy link
Member

@frankyn i'm not sure if you are asking whether we will decide on the prioritization this quarter (maybe) or whether we are scheduling it for this quarter (not yet).

@frankyn
Copy link
Member Author

frankyn commented Aug 7, 2017

I mean, is it scheduled for this quarter. This issue will help the developer experience when using the Java Client library to download a blob. Thanks @garrettjonesgoogle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants