简体   繁体   English

我们可以在GCP存储中创建文件吗?

[英]Can we create a file in GCP storage?

I need to create a empty file in GCP but I only see Upload options. 我需要在GCP中创建一个空文件,但我只看到上传选项。 Is there a way I can achieve this? 有没有办法实现这个目标? or we can only upload filestream to GCP? 或者我们只能将文件流上传到GCP?

最简单的方法是使用StorageClient.UploadObject()并将其传递给一个空的Stream。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM