Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Uploads an image file to GCS using java

I found all of uploading file examples in java listed in Google Cloud Storage are too old, which are not suited to current Google Cloud Storage environment. By the way, the json structure in "confidential.json" file  has been modified which can not parsed by GoogleCredentials class.

0 2 123
2 REPLIES 2

Can you elaborate your query, it is not having that much of a information.

Hi, @boyingwu77.

I'm not sure which documents you've already reviewed for that, but I'm referring to these two documents for your scenario.

- https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/overview
- https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/overview

Regards,
Mokit