Beispiel #1
0
        private void ThumbnailOssPutObject(string bucketName, string imageName, byte[] images, OssClient ossClient)
        {
            string graphFileName = string.Format("graph_{0}", imageName);

            byte[] listGraphSizeByte = ThumbnailHelper.MakeThumbnail(ThumbnailHelper.ReturnPhoto(images), "", 200, 200, "Cut");
            var    objStream         = new MemoryStream(listGraphSizeByte);

            ossClient.PutObject(config.Bucket, graphFileName, objStream);
            objStream.Close();
        }