如何使用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);
}
}
}发布于 2017-08-16 02:55:30
有关如何从C#与Oracle裸机云服务REST API对话的示例,请查看here。可以很容易地修改此示例,以便与对象存储服务对话。
https://stackoverflow.com/questions/45356349
复制相似问题