Android Interaction with Google App Engine Blobsto

2019-03-22 00:44发布

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条回答
【Aperson】
2楼-- · 2019-03-22 01:23

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.

查看更多
登录 后发表回答