Browse Source
Merge pull request #5615 from Aprite/fix-minio-objectdisposedexception
fix:ObjectDisposedException
pull/5620/head
liangshiwei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.BlobStoring.Minio/Volo/Abp/BlobStoring/Minio/MinioBlobProvider.cs
|
|
|
@ -72,11 +72,11 @@ namespace Volo.Abp.BlobStoring.Minio |
|
|
|
} |
|
|
|
|
|
|
|
var memoryStream = new MemoryStream(); |
|
|
|
await client.GetObjectAsync(containerName, blobName, async stream => |
|
|
|
await client.GetObjectAsync(containerName, blobName, (stream) => |
|
|
|
{ |
|
|
|
if (stream != null) |
|
|
|
{ |
|
|
|
await stream.CopyToAsync(memoryStream); |
|
|
|
stream.CopyTo(memoryStream); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
|