Upload images to Blobstore right form Java

53 views
Skip to first unread message

Jimin Park

unread,
Sep 12, 2015, 5:57:49 PM9/12/15
to Google App Engine
I use GAE Java. I was looking for ways to upload images that produce actual URL not storing them inside Datastore.
My research led me to using Blobstore API. However the API's home page says uploading right from Java is deprecated.
My images are base64 encoded from client browser and turned into byte array in servlet.
I would like to store this into Blobstore API and obtain an URL. Is there anyway I can achieve this properly?

Patrice (Cloud Platform Support)

unread,
Sep 14, 2015, 11:59:42 AM9/14/15
to Google App Engine
Hi Jimin,

if you follow the "files API deprecation" link, you will see the way to achieve this is to use the Google Cloud Storage Client Library. You can get the Java version of it here. With it you can save into Google Cloud Storage, and retrieve a URL. In the page I've linked, you can also find alternate ways to getting to Google Cloud Storage.

Cheers!
Reply all
Reply to author
Forward
0 new messages