Skip to content

Commit ef15d2e

Browse files
author
Konduru Keerthi Konduru Ravichandra Raju
committed
Google Cloud Storage
1 parent d2e05f2 commit ef15d2e

File tree

2 files changed

+4
-4
lines changed
  • Read-and-Save-document/Open-and-save-Word-document/Google-Cloud-Storage

2 files changed

+4
-4
lines changed

Read-and-Save-document/Open-and-save-Word-document/Google-Cloud-Storage/Open-Word-document/Open-Word-document/Controllers/HomeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public async Task<MemoryStream> GetDocumentFromGoogle()
6161
//Your bucket name
6262
string bucketName = "Your_bucket_name";
6363

64-
//Your service account key path
65-
string keyPath = "Your_service_account_key_path";
64+
//Your service account key file path
65+
string keyPath = "credentials.json";
6666

6767
//Name of the file to download from the Google Cloud Storage
6868
string fileName = "WordTemplate.docx";

Read-and-Save-document/Open-and-save-Word-document/Google-Cloud-Storage/Save-Word-document/Save-Word-document/Controllers/HomeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ public async Task<MemoryStream> UploadDocumentToGoogle(MemoryStream stream)
271271
//Your bucket name
272272
string bucketName = "Your_bucket_name";
273273

274-
//Your service account key path
275-
string keyPath = "Your_service_account_key_path";
274+
//Your service account key file path
275+
string keyPath = "credentials.json";
276276

277277
//Name of the file to upload to Google Cloud Storage
278278
string fileName = "CreateWord.docx";

0 commit comments

Comments
 (0)