PutObject() private method

private PutObject ( string bucketName, string objectName, string uploadId, int partNumber, byte data, string contentType ) : string
bucketName string
objectName string
uploadId string
partNumber int
data byte
contentType string
return string
コード例 #1
1
ファイル: PutObject.cs プロジェクト: minio/minio-dotnet
        static int Main()
        {
            /// Note: s3 AccessKey and SecretKey needs to be added in App.config file
            /// See instructions in README.md on running examples for more information.
            var client = new MinioClient("s3.amazonaws.com", ConfigurationManager.AppSettings["s3AccessKey"],
                                         ConfigurationManager.AppSettings["s3SecretKey"]);

            byte[] data = System.Text.Encoding.UTF8.GetBytes("hello world");
            client.PutObject("my-bucketname", "my-objectname", new MemoryStream(data), 11, "application/octet-stream");
            return 0;
        }