You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem after migration to latest minio version (from 5.0.0 to 6.0.2). I'm trying to download a file using GetObjectAsync in following way:
byte[] fileResult = null;
var args = new GetObjectArgs()
.WithBucket(bucketName)
.WithFile(fileName)
.WithObject(fileName)
.WithCallbackStream(stream =>
{
byte[] buffer = new byte[16 * 1024];
using (MemoryStream ms = new MemoryStream())
{
int read;
while ((read = stream.Read(buffer, 0, buffer.Length)) > 0)
{
ms.Write(buffer, 0, read);
}
fileResult = ms.ToArray();
}
});
var result = await minioClient.GetObjectAsync(args, cancellationToken);
return fileResult;
but it always return information that file have 0 size. Did something change from version 5 - do I have to construct args in different way to find and download my existing files ?
The text was updated successfully, but these errors were encountered:
dawcza3
changed the title
Minio 6.0.2 - GetObjectAsync doesn't working properly with .NET 8
Minio 6.0.2 - GetObjectAsync doesn't work properly with .NET 8
Mar 3, 2024
Probably you encounter an exception while downloading the object from the object-store. It's probably the same issue described in #1041. If you try the version 6.0.1 this error will probably vanish.
Hi,
I have a problem after migration to latest minio version (from 5.0.0 to 6.0.2). I'm trying to download a file using GetObjectAsync in following way:
but it always return information that file have 0 size. Did something change from version 5 - do I have to construct args in different way to find and download my existing files ?
The text was updated successfully, but these errors were encountered: