jerryhu_个人页

个人头像照片 jerryhu
个人头像照片
0
1
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息
正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2012-06-20

    Aliyun OSS SDK for .NET 上线发布

    ReAliyunOSSSDKforNET上线发布 示范代码有吗 ------------------------- ReAliyunOSSSDKforNET上线发布 早上研究了下,感觉挺好用。 贴些代码: const String accessId = '{accessId }';        const String accessKey = '{accessKey}';        const String ossEndpoint = 'http://storage.aliyun.com/';        protected void Page_Load(object sender, EventArgs e)        {            if (!IsPostBack)                PopulateFiles();        }        private void PopulateFiles()        {            String bucketName = '{BucketName}';            var client = new OssClient(ossEndpoint, accessId, accessKey);            var list = client.ListObjects(bucketName);            foreach (var f in list.ObjectSummaries)            {                Response.Write(f.Key   '');            }        }        protected void btnUpload_Click(object sender, EventArgs e)        {            String bucketName = '{BucketName}';            var client = new OssClient(ossEndpoint, accessId, accessKey);            FileInfo fileInfo = new FileInfo(filUpload.PostedFile.FileName);            var fileName = fileInfo.Name;            ObjectMetadata objectMeta = new ObjectMetadata();            objectMeta.ContentType = 'image/jpeg';            client.PutObject(bucketName, fileName, filUpload.FileContent, objectMeta);            PopulateFiles();        }
    踩0 评论0
正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息