Generating getServingUrl() in google cloud storage with NodeJs sdk

你离开我真会死。 提交于 2019-12-08 17:03:42

问题


I am using google cloud storage for storing images and also I have server running on NodeJs.

I want to generate for every image the servingUrl(aka magicUrl) which would on the fly generate 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 generate that, but I couldn't find anywhere getServingUrl.


回答1:


You seem to be confusing Google App Engine and Google Cloud Storage. The 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.



来源:https://stackoverflow.com/questions/40362313/generating-getservingurl-in-google-cloud-storage-with-nodejs-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!