如何使用 C# 访问 Oracle Bare Metal Cloud 中的 Oracle 对象存储。 我希望在 .NET 程序中用 C# 运行下面的类似代码:
static IAmazonS3 client;
using (client = new AmazonS3Client(Amazon.RegionEndpoint.USEast1))
{
GetObjectRequest request = new GetObjectRequest
{
BucketName = bucketName,
Key = keyName
};
using (GetObjectResponse response = client.GetObject(request))
{
string dest =
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
keyName);
if (!File.Exists(dest))
{
response.WriteResponseStreamToFile(dest);
}
}
}
最佳答案
请看一下here有关如何通过 C# 与 Oracle Bare Metal Cloud Services REST API 对话的示例。可以很容易地修改此示例以与对象存储服务通信。
关于.net - 如何使用 C# 将文件上传到 Oracle Bare Metal Cloud 对象存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45356349/