如何写入 Ruby 中的 Google Cloud Storage 获取内容?
How to write to get content from Google Cloud Storage in Ruby?
是否可以使用 Google 云函数来检索放置在 Google 云存储中的文件的内容?
另外,我想知道怎么做。
我试过了,
file = bucket.file(path)
file.download.read
但我没有阅读回复
\xA3\xB4\x97..
file = bucket.file(path)
downloaded_file = file.download
File.read(downloaded_file, encoding: 'ENCODE') # utf8 etc.
另请阅读 this 答案。
GL.
是否可以使用 Google 云函数来检索放置在 Google 云存储中的文件的内容? 另外,我想知道怎么做。
我试过了,
file = bucket.file(path)
file.download.read
但我没有阅读回复
\xA3\xB4\x97..
file = bucket.file(path)
downloaded_file = file.download
File.read(downloaded_file, encoding: 'ENCODE') # utf8 etc.
另请阅读 this 答案。
GL.