문제

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