上传到AppEngine上Blob存储在Android中AppEngine、Blob、Android

由网友(落雪成白墨影成悲)分享简介:我正在为Android简单的多媒体信息的应用程序,而我尝试使用谷歌AppEngine上的Blob存储作为我的云存储的各种图片,视频,以及将要传送的音频文件。然而,所有的例子和这样的,我已经看到了上传到Blob存储假设我通过HTTP的形式做,所以我有点无所适从,以什么做的。I'm working on a simple...

我正在为Android简单的多媒体信息的应用程序,而我尝试使用谷歌AppEngine上的Blob存储作为我的云存储的各种图片,视频,以及将要传送的音频文件。然而,所有的例子和这样的,我已经看到了上传到Blob存储假设我通过HTTP的形式做,所以我有点无所适从,以什么做的。

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.

我看到几个人问同样的问题,但没有人似乎永远得到一个满意的答案。可我还是应该我使用AppEngine上的Blob存储以这种方式,如果是这样我怎么去这样做呢?

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?

谢谢你,就这样。

推荐答案

您可以像这样去:

1 在谷歌应用程序引擎,创建一个Web处理程序,调用的 blobstore.create_upload_url()返回 action_POST_URL

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

2 在Android上,张贴图片到 action_POST_URL 使用的 HttpClient的和的 MultipartEntity 。

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

阅读全文

相关推荐

最新文章