Hello Abhiram, 

Com.google.cloud.storage is a client for Cloud Storage and helps to upload 
files into the buckets.

com.google.appengine.tools.cloudstorage is part of the 
com.google.appengine.tools package that make up the Google App Engine Tools 
API, which can be embedded in IDEs and other development utilities to 
perform testing and deployment of App Engine applications [1]. 

Com.google.cloud.storage is used for uploading documents into the Cloud 
Storage buckets. On the other hand as described earlier 
com.google.appengine.tools.cloudstorage is not meant to be used by the 
typical user.

To upload your documents without passing through your application you can 
use the signUrl method of the Blob class of the com.google.cloud.storage 
package [2]. Signed URLs, which is a mechanism for query string 
authentication for buckets and objects [3]. Signed URLs provide a way to 
give time-limited read or write access to anyone in possession of the URL, 
regardless of whether they have a Google account. Files can be uploaded or 
downloaded directly from buckets of Cloud Storage without going through any 
App Engine instances. 

[1]https://cloud.google.com/appengine/docs/standard/java/tools/javadoc/com/google/appengine/tools/package-summary

[2]
https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/storage/Blob.html#signUrl-long-java.util.concurrent.TimeUnit-com.google.cloud.storage.Storage.SignUrlOption...-

[3] https://cloud.google.com/storage/docs/access-control/signed-urls


On Friday, October 12, 2018 at 7:50:11 AM UTC-4, Abhiram Vedullapalli wrote:
>
>
> Can anyone explain what is the difference between these two packages * 
> com.google.cloud.storage 
> <https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/storage/package-summary.html>
>   
> *and *com.google.appengine.tools.cloudstorage* 
> <https://cloud.google.com/appengine/docs/standard/java/googlecloudstorageclient/javadoc/com/google/appengine/tools/cloudstorage/package-summary>
>  ?
>
> Are there any differences in how they function ? Which package is used in 
> which scenario ?
>
> I am developing a Spring MVC application and want to upload files (>100 
> MB) directly to Cloud Storage and download them without any errors and 
> without going through App Engine instances. Which one suits me best ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3be07d29-05ea-47f8-a2f7-2d63481934a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appeng... Abhiram Vedullapalli
    • [google-a... 'Mohammad I (Cloud Platform Support)' via Google App Engine

Reply via email to