Upload image from Android to Google Cloud Storage or Google App Engine Blobstore -
i have gaej , save images, uploaded android device , iphone.
why there 2 google services , wich 1 should used gaej?
google blobstore https://developers.google.com/appengine/docs/java/blobstore/
google cloud storeage https://developers.google.com/storage/
pseudo code:
- httpclient base64 encoded data.
- send image google app engine.
- from google app engine save decoded image blobstore or cloud storage.
- httpservletresponse status android.
i confused how step 3.
thanks in advance regards
long time ago when app engine existed, google cloud storage doesn't exists yet way store blobs blobstore. existed made api blobstore work google cloud storage well. both work image serving/manipulations. cloud storage think built in cdn serves closest edge server while blobstore when downloading coming appengine instance.
uploading either of works same way, client need request upload url session uploaded directly blobstore/cloud storage when post url
send_to_client_url = blobstore.create_upload_url('/yourhandler') httpclient.post file send_to_client_url yourhandler recieves blob row store blobkey datastore reference
you have uploaded file when reaches yourhandler/or failed handle appropriately on respond client(android/ios)
Comments
Post a Comment