On Mon, Mar 24, 2014 at 8:35 PM, Kevin Fan <kevin022...@gmail.com> wrote:

> I read we can download file from cloud storage by getting url
>
> // get a secure URL for downloading a file
> URL url = blobEndpoint.getDownloadUrl("receipts",
>                              getReceiptFileName())
>                        .execute().getShortLivedUrl());
>
>
> I assume blobEndpoint is from class Mobilebackend.BlobEndpoint class.
> How do I initialise class?
>


Correct, blobEndpoint represents a
com.google.cloud.backend.spi.BlobEndpoint reference:
https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java/blob/master/src/com/google/cloud/backend/spi/BlobEndpoint.java

Did you get that snippet of code from the blog post at
http://googlecloudplatform.blogspot.com/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html
?
If so, that code snippet expects that you've already generated the client
libraries and made them available to your Android
project<https://developers.google.com/appengine/docs/python/endpoints/gen_clients#generating_for_android>.
The client libraries will make the appropriate functionality ready for the
Android app.



-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to