Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload to Appengine Blobstore in Android

I'm working on a simple multimedia messaging app for Android, and I was trying to use Google AppEngine's BlobStore as my cloud storage for the various image, video, and audio files that will be transferred. However, all of the examples and such that I've seen for uploading to blobstore assume that I'm doing it via an HTTP form, and so I'm kind of at a loss as to what to do.

I've seen several people asking the same question, but none of them seem to ever get a satisfactory answer. Can I or should I use AppEngine's blobstore in this way, and if so how do I go about doing it?

Thanks, SO.

like image 663
Zenanon Avatar asked Mar 25 '11 18:03

Zenanon


1 Answers

You could go with something like this:

1. On Google App Engine, create a Web Handler that calling blobstore.create_upload_url() returns an action_POST_URL

2. On Android, post the image to the action_POST_URL using HttpClient and MultipartEntity.

like image 64
systempuntoout Avatar answered Sep 26 '22 06:09

systempuntoout