tejashree mahadik
tejashree mahadik

Reputation: 315

How to write Api method to Upload Image to Google Cloud Storage using Google Cloud Endpoint

I want to write API in Google Cloud Endpoint for uploading image to Google Cloud Storage.
Platform : Google Cloud Endpoint (Java)
Backend connection like database connection : Google Cloud Datastore.
Also , Which data type is used for uploading image ? Please help me for this.

Upvotes: 0

Views: 1159

Answers (1)

Renaud Tarnec
Renaud Tarnec

Reputation: 83093

If you look further in StackOverflow you will find that people advise not going through Endpoints for this particular case.

For Android, see Uploading image from Android to GCS and upload image to google cloud storage with an application android.

Since you know the bucket and file name, the URL of the uploaded file is easily deductible, see the following documentation to decide which URL to use (depending on whether the user shall be authenticated or not, see Section "A user is granted read access to an object") https://cloud.google.com/storage/docs/cloud-console#_accessing

Upvotes: 1

Related Questions