与谷歌的App Engine Blob存储服务的Andr​​oid互动 [英] Android Interaction with Google App Engine Blobstore Service

查看:118
本文介绍了与谷歌的App Engine Blob存储服务的Andr​​oid互动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前已经建立了我的Andr​​oid应用程序的客户端(做这个工作,两三个月新的Andr​​oid)。在客户端的功能是允许用户点击一个照片和附加一些文本信息给它。一旦用户点击了照片后,添加文本信息,他/她点击完成。

I have currently set up the client side of my Android application (working on it for a couple of months new to Android). The functionality on the client side is to allow the user to click a photo and attach some textual information to it. Once the user has clicked the photo followed by adding text information, he/she clicks on "Done".

这个信息需要被发送给服务器。对于我的项目,它是一个pre必要使用谷歌应用程序引擎。于是前进的最好的方式,我理解为存储图像是使用Blob存储服务API。 https://developers.google.com/appengine/docs/java/blobstore/overview

This information needs to be sent to the Server. For my project it is a pre requisite to use Google App Engine. So the best possible way forward that I understood to store images is to use the Blobstore Service api. https://developers.google.com/appengine/docs/java/blobstore/overview

由于我是新来使用谷歌应用程序引擎我对Android设备和Blob存储服务之间的交互没有太多的想法。

As I am new to using Google App Engine I have not much idea about the interaction between the Android device and the Blobstore service.

我现在明白了如何使用Blob存储服务的一个Web应用程序(做了谷歌应用程序引擎的 http://www.rominirani.com/2009/12/18/episode-13-using-the-blobstore-java-api/ ) 但我不明白,这是一个Android应用程序有什么不同。我一直没能找到利用Blob存储API服务的与Android之间的多文档。所以,我想知道这是否是我做了一个正确的决定,关于使用Blob存储服务从Android设备上载图像。是否有任何其他建议/更好的办法。

I now understand how to use the Blobstore service for a Web app (did the tutorial on Google App Engine http://www.rominirani.com/2009/12/18/episode-13-using-the-blobstore-java-api/) but I do not understand how different it is for an Android Application. I have not been able to find much documentation between the use of Blobstore Api Service with Android. So I wanted to know if it is a correct decision made by me on using the Blobstore service for uploading image from the Android Device. Is there any other suggestion/better way.

任何帮助将是非常美联社preciated,因为我的项目是站在原地的最后几天。非常感谢你。

Any help would be really appreciated because my project is on stand still for the last few days. Thank You very much

推荐答案

两个步骤:

  1. 在服务器端创建BLOB上传处理,该处理的multipart / form-data的 HTTP POST请求。

  1. On server side create blob upload handler, which handles multipart/form-data HTTP POST requests.

在Android上创建一个<一个href="http://stackoverflow.com/questions/7632737/android-send-a-image-and-save-url/7632849#7632849">multipart HTTP POST请求。

On Android create a multipart HTTP POST request.

这篇关于与谷歌的App Engine Blob存储服务的Andr​​oid互动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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