Since 2 days Googling, I got to upload a file in Google Cloud Storage using java. Now I am facing troubles to download the same file from Google Cloud Storage using java.

I tried with BlobstoreService to upload a file. Can any body give me the suggestions to download from the GCS?

有帮助吗?

解决方案

If you want to read a file on Google Cloud Storage from an App Engine application, you need to use the Google Cloud Storage Java Client Library, or you can read it using Blobstore API after you get the blobstore key using the function createGsBlobKey.

Using Google Cloud Storage Java Client Library in order to read/write files is fairly simple. Check out this page for more info: https://developers.google.com/appengine/docs/java/googlecloudstorageclient/getstarted

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top