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 tried to stream a file partial. For this I use the function "GetObjectAsync.WithOffsetAndLength". When calling the method with offset != 0 the call works as expected. As soon as I call the method with offset = 0 the file is not returned from the beginning.
For this I use this code:
using MemoryStream memoryStream = new MemoryStream();
var args = new GetObjectArgs()
.WithBucket(_bucketName)
.WithObject(path)
.WithOffsetAndLength(0, 5)
.WithCallbackStream((stream) =>
{
stream.CopyTo(memoryStream);
stream.Dispose();
});
await _minioClient.GetObjectAsync(args);
byte[] bytes = new byte[5];
memoryStream.Read(bytes, 0, 5);
The file I'm reading in contains this data:
hex
31 32 33 34 35 36 37 38 39 -> 123456789
I expected the following data to be read:
hex
31 32 33 34 35 -> 12345
Instead, the following data was read:
hex
36 37 38 39 00-> 6789-
The text was updated successfully, but these errors were encountered:
I tried to stream a file partial. For this I use the function "GetObjectAsync.WithOffsetAndLength". When calling the method with offset != 0 the call works as expected. As soon as I call the method with offset = 0 the file is not returned from the beginning.
For this I use this code:
The file I'm reading in contains this data:
I expected the following data to be read:
Instead, the following data was read:
The text was updated successfully, but these errors were encountered: