код, который я использую < /p>
Код: Выделить всё
try
{
var copySourceObjectArgs = new CopySourceObjectArgs()
.WithBucket("src-img.jpg")
.WithObject("srcbucket");
var copyObjectArgs = new CopyObjectArgs()
.WithBucket("new-img-name.jpg")
.WithObject("newbucket")
.WithCopyObjectSource(copySourceObjectArgs);
await _minIOClient.CopyObjectAsync(copyObjectArgs).ConfigureAwait(false);
}
catch (Exception exception)
{
Console.WriteLine(exception.ToString());
}
< / Code>
_minioclient code < / p>
_minIOClient = new MinioClient()
.WithEndpoint(EndPoint)
.WithCredentials(AccessKey, SecretAccessKey)
.WithSSL()
.Build();
Подробнее здесь: https://stackoverflow.com/questions/793 ... nexception
Мобильная версия