在 Android 中上传到 Appengine Blobstore [英] Upload to Appengine Blobstore in Android

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

问题描述

我正在为 Android 开发一个简单的多媒体消息应用程序,并尝试使用 Google AppEngine 的 BlobStore 作为我的云存储,用于存储将要传输的各种图像、视频和音频文件.但是,我看到的所有上传到 blobstore 的示例等都假设我是通过 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 的 blobstore,如果可以,我该怎么做?

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. 在 Google App Engine 上,创建一个调用 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 上,使用 HttpClientMultipartEntity.

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

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

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