2
It seems like you’re having trouble with the Minio client in your .NET Core 6 application. Let’s address each of your issues:
- Minio client does not contain a constructor that takes 3 arguments: The MinioClient constructor requires a
MinioConfiguration
object as an argument. You can create this configuration object and pass it to the MinioClient constructor like this:
var minioConfig = new MinioConfiguration
{
Endpoint = endpoint,
AccessKey = accessKey,
SecretKey = secretKey
};
_s3Client = new MinioClient(minioConfig);
-
Cannot convert string to minio data model: This error usually occurs when you’re trying to pass a string where a Minio data model is expected. Without more specific information about where this error is occurring, it’s hard to provide a precise solution. Please check the Minio documentation or the method signature to ensure you’re passing the correct types of arguments.
-
No overload method for await _s3Client.PutObjectAsync(_bucketName, objectName, new MemoryStream(Encoding.UTF8.GetBytes("")));
: The PutObjectAsync
method expects a PutObjectArgs
object. You can create this object and pass it to the method like this:
var putObjectArgs = new PutObjectArgs(_bucketName, objectName, new MemoryStream(Encoding.UTF8.GetBytes("")))
{
ContentType = "application/octet-stream"
};
await _s3Client.PutObjectAsync(putObjectArgs);
Thanks

0
i got almost same answer from chat GPT but still it is not working thanks