We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 427437d commit 73d8d91Copy full SHA for 73d8d91
1 file changed
README.md
@@ -94,7 +94,7 @@ Then upload the file the file with `UploadAsync`. This can be done two ways:
94
string path = @"TestFiles/test.pdf";
95
string fileName = "test.pdf";
96
97
- using (System.IO.Stream stream = await File.ReadAllBytesAsync(path))
+ using (System.IO.Stream stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read))
98
{
99
await _cloudConvertAPI.UploadAsync(uploadTask.Result.Form.Url.ToString(), stream, fileName, uploadTask.Result.Form.Parameters);
100
}
0 commit comments