我知道如何保存 Streams,但我想获取该流并创建缩略图和其他大小的图像,但我不知道如何将 byte[] 保存到 Azure Blob 存储。
这就是我现在为保存 Stream 所做的事情:
// Retrieve reference to a blob named "myblob".
CloudBlockBlob _blockBlob = container.GetBlockBlobReference("SampleImage.jpg");
// upload from Stream object during file upload
blockBlob.UploadFromStream(stream);
// But what about pushing a byte[] array? I want to thumbnail and do some image manipulation