Creating getServingUrl () on Google Cloud Storage with NodeJs sdk

I use Google Cloud Storage for image storage, as well as a server running on NodeJs.

I want to generate for each image servingUrl (aka magicUrl), which on the fly generates images of different sizes (see more https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud -platform-ca9631a2c556 # .1jtzu5kuo )

I tried using gcloud sdk to create it, but I could not find getServingUrl anywhere.

+6
source share
1 answer

You seem to be confused about Google App Engine and Google Cloud Storage. The get_serving_url () method is only available in the Google App Engine for Python SDK and is currently not available in the Google Cloud Client Library for Node.js.

+5
source

Source: https://habr.com/ru/post/1011914/


All Articles