上传到 AzureCloud BlobStorage 时为 UNIT_TESTCASE 命名异常。
我的代码是,
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
// Retrieve a reference to a container.
CloudBlobContainer container =
blobClient.GetContainerReference("myblogcontainer");
// Retrieve reference to a blob named "myblob".
CloudBlockBlob blockBlob =
container.GetBlockBlobReference("WeekendChamps.jpg");
// Create or overwrite the "myblob" blob with contents from a local file.
using (var fileStream =
System.IO.File.OpenRead(@"C:\Users\Bliss\Downloads\WeekendChamps.jpg"))
{
blockBlob.UploadFromStream(fileStream);
}
30秒到达战场
相关分类