0

I am trying to access many high resolution photos I have inside a Bucket in my Google Cloud account and serve them through Express.js. I have the framework for the site already in place, just need to plug in the photos in the appropriate places. How do I access my Bucket through the app I already have built?

PsiKai
  • 1,803
  • 1
  • 5
  • 19

1 Answers1

1

The recommended way would be to refer to the Cloud Storage Client Libraries. In your specific case, since your are using JS, you can refer to the Node.js client library. Notice that the documentation already includes examples as to how to download and upload objects, as well as how to make many other operations with the bucket. For a full reference of the Client Library refer to this link.

Another path you could explore is to use any package for making HTTP requests (find some examples on this post), to make the relevant calls to the XML or the JSON API.

Daniel Ocando
  • 3,554
  • 2
  • 11
  • 19
  • Thanks for your answer, and sorry for my late response. This is indeed the documentation I was looking for, but couldn't seem to find in the dense GCP docs by myself. – PsiKai Sep 15 '20 at 18:56