Android Interaction with Google App Engine Blobstore Service

折月煮酒 提交于 2019-12-09 06:52:33

问题


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".

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

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.

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.

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


回答1:


Two steps:

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

  2. On Android create a multipart HTTP POST request.



来源:https://stackoverflow.com/questions/14423890/android-interaction-with-google-app-engine-blobstore-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!