上传到AppEngine上Blob存储在Android中 [英] Upload to Appengine Blobstore in Android

查看:112
本文介绍了上传到AppEngine上Blob存储在Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为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.

这篇关于上传到AppEngine上Blob存储在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆