Skip to content

Commit 73d8d91

Browse files
authored
Fixed typo
1 parent 427437d commit 73d8d91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Then upload the file the file with `UploadAsync`. This can be done two ways:
9494
string path = @"TestFiles/test.pdf";
9595
string fileName = "test.pdf";
9696

97-
using (System.IO.Stream stream = await File.ReadAllBytesAsync(path))
97+
using (System.IO.Stream stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read))
9898
{
9999
await _cloudConvertAPI.UploadAsync(uploadTask.Result.Form.Url.ToString(), stream, fileName, uploadTask.Result.Form.Parameters);
100100
}

0 commit comments

Comments
 (0)