使用 NodeJs SDK 在 google 云存储中生成 getServingUrl()
Generating getServingUrl() in google cloud storage with NodeJs sdk
我正在使用 google 云存储来存储图像,而且我在 NodeJs 上有服务器 运行。
我想为每个图像生成 servingUrl
(又名 magicUrl),它会动态生成不同大小的图像(查看更多 https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556#.1jtzu5kuo)
我尝试使用 gcloud
sdk 生成它,但我找不到任何地方 getServingUrl
。
您似乎混淆了 Google App Engine 和 Google Cloud Storage。 get_serving_url() method is only available in the Google App Engine SDK for Python, and is currently not available in the Google Cloud Client Library for Node.js.
我正在使用 google 云存储来存储图像,而且我在 NodeJs 上有服务器 运行。
我想为每个图像生成 servingUrl
(又名 magicUrl),它会动态生成不同大小的图像(查看更多 https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556#.1jtzu5kuo)
我尝试使用 gcloud
sdk 生成它,但我找不到任何地方 getServingUrl
。
您似乎混淆了 Google App Engine 和 Google Cloud Storage。 get_serving_url() method is only available in the Google App Engine SDK for Python, and is currently not available in the Google Cloud Client Library for Node.js.