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:

  1. httpclient base64 encoded data.
  2. send image google app engine.
  3. from google app engine save decoded image blobstore or cloud storage.
  4. 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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -