Using Google Cloud Storage with Google Cloud Endpoints

93 views
Skip to first unread message

Gannicus

unread,
Jan 29, 2015, 6:43:18 PM1/29/15
to google-a...@googlegroups.com

I have an Android app working with GAE and google cloud endpoints. I would like to upload photo from the app using google cloud storage. However, it seems like it is difficult or impossible to do so. (http://stackoverflow.com/questions/27909836/upload-a-photo-with-google-cloud-endpoints)

It appears that the use of servlets is required. Is it true? Do you know some way to upload photos using Cloud Endpoints?

Thank you.

Les Vogel

unread,
Jan 29, 2015, 7:01:56 PM1/29/15
to google-a...@googlegroups.com
There are many ways to do this.  You don't necessarily need endpoints to do it.

1. Use your AppEngine instance as an intermediary.
2. Write directly from your Android App to Google Cloud Storage.

I prefer option #2, the Abelana Android app does this see AbelanaUpload.  

--
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-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/5c1cad6c-2fcc-499e-b90d-78c9520c67c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Les Vogel | Cloud Developer Relations | le...@google.com | 408-676-7023

Gannicus

unread,
Jan 30, 2015, 5:24:57 AM1/30/15
to google-a...@googlegroups.com
Hi Les, thank you for helping me again!
In my case I believe (but I may be wrong) option #1 is better because I want the clients to send photos to each other (quite frequently) , not just upload them. Am I right?

Can I also ask you if the Blobstore could be better than Cloud Storage in my case?

Thanks again.

Les Vogel

unread,
Jan 30, 2015, 12:21:43 PM1/30/15
to google-a...@googlegroups.com
I use encoding in the fileName to say what to do.

Upload directly to GCS, Let GCS Notify your AE instance, that will then process and send a notification to the users you want to have the image.



For more options, visit https://groups.google.com/d/optout.

Kaan Soral

unread,
Jan 30, 2015, 1:28:39 PM1/30/15
to google-a...@googlegroups.com
It's unclear what happens if uploads to app engine fails, Is there anyone around using the manual GCS upload routine and utilising specialised libraries for retry-able, more hassle-free/improved uploads?

This is an issue especially on mobile and generally for large files, even a small disruption of the network causes the upload to fail, I'm not very fluent in http/network upload protocols, yet I'm guessing the upload fails in most of the cases

Les Vogel

unread,
Jan 30, 2015, 1:43:48 PM1/30/15
to google-a...@googlegroups.com
Yes - that code doesn't have retryable bits.  For the next release, I'll put in a queue and dealing w/ Network up / down events, as well as some power saving things.

Actually, what we saw is that it works in most cases.

On Fri, Jan 30, 2015 at 10:28 AM, Kaan Soral <kaan...@gmail.com> wrote:
It's unclear what happens if uploads to app engine fails, Is there anyone around using the manual GCS upload routine and utilising specialised libraries for retry-able, more hassle-free/improved uploads?

This is an issue especially on mobile and generally for large files, even a small disruption of the network causes the upload to fail, I'm not very fluent in http/network upload protocols, yet I'm guessing the upload fails in most of the cases

--
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-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages