【问题标题】:How do you upload a file to the Oracle Bare Metal Cloud Object store using C#如何使用 C# 将文件上传到 Oracle 裸机云对象存储
【发布时间】:2017-07-27 16:31:12
【问题描述】:

如何使用 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);
    }
}
}

【问题讨论】:

    标签: .net oracle c#-4.0 bare-metal oracle-cloud-infrastructure


    【解决方案1】:

    请查看here 以获取有关如何从 C# 与 Oracle 裸机云服务 REST API 对话的示例。这个示例可以很容易地修改为与对象存储服务通信。

    【讨论】:

      猜你喜欢
      • 2020-01-25
      • 2017-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-06
      • 2015-07-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多