Reputation: 185
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.
Upvotes: 6
Views: 4893
Reputation: 21
for Java
BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
String action_POST_URL= blobstoreService.createUploadUrl(redirect_URL);
Upvotes: 2
Reputation: 74064
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.
Upvotes: 4