uploaded under Windows
The code is as follows:
Uri the Uri=new Uri (" http://oss-cn-shanghai.aliyuncs.com ");
OssClient OssClient=new OssClient (uri, AccessKeyID, AccessKeySecret);
MemoryStream requestContent=new MemoryStream (bytes);
PutObjectRequest _objRequest=new PutObjectRequest (BucketName savePath, requestContent);
Var s=ossClient. PutObject (_objRequest);
CodePudding user response:
In general should avoid using this particular platform API, especially in the copycat cloud server vendors,