How to create a file on GCP storage?

0 votes
I can only see options to upload files. How can I create a file on gcp storage?
Nov 5 in GCP by anonymous
• 5,500 points
15 views

1 answer to this question.

0 votes

In case you are using Cloud storage bucket, the easiest way would be to use StorageClient.UploadObject() and pass it an empty Stream.

Hope this helps!

answered Nov 5 by Sirajul
• 37,480 points

Related Questions In GCP

0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20 in GCP by Sirajul
• 37,480 points
43 views
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 37,480 points
23 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10 in GCP by Sirajul
• 37,480 points
47 views
0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 23 in GCP by Sirajul
• 37,480 points
17 views