0

I am creating the server backend of my Android application in Google App Engine/java. there is a functionality of adding a profile picture. From Android App,i am passing this image as Base64 encoded stream to my App Engine Servlet. I am confused as to how can i store this image(file) using blobstore api .Then i would create IMageURL of this blob using ImageService API.

Can anyone suggest a best way ,on how to ad

zee
  • 502
  • 8
  • 28

1 Answers1

0

Try this:

1) Decode the Base64 string on App Engine. Alternatively, just POST the file itself without encoding it.

2) Store the image on Google Cloud Storage. Here is an example.

3) Retrieve the image from Cloud Storage using the getServingUrl function from the Blobstore API.

If you are doing image manipulations before serving, you can use the Images API.

Community
  • 1
  • 1
Sandeep Dinesh
  • 2,035
  • 19
  • 19