Commit ed89adb7 authored by Mahmoud Bakhtvar's avatar Mahmoud Bakhtvar

FileReadOption.ReadAll is used.

parent d808cb17
......@@ -31,7 +31,7 @@ namespace SendFileWebapi.Controllers
.Select(fileName => Observable.FromAsync(async () =>
{
var stream = fileName.OpenReadStream();
var request = new Dicom.Network.DicomCStoreRequest(await DicomFile.OpenAsync(stream));
var request = new Dicom.Network.DicomCStoreRequest(await DicomFile.OpenAsync(stream, FileReadOption.ReadAll));
await client.AddRequestAsync(request);
await client.SendAsync();
stream.Dispose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment