I am trying to upload a file to a new container of a Blob following this Example.
I am creating the container like this and looks fine.
var blobStorage = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobStorage.GetContainerReference("productimages");
if (container.CreateIfNotExists())
{
var permissions = container.GetPermissions();
permissions.PublicAccess = BlobContainerPublicAccessType.Container;
container.SetPermissions(permissions);
}
But trying to call the GetBlockBlobReference from a CloudBlobContainer shows me that the method doesn't exist.
string uniqueBlobName = string.Format("productimages/image_{0}{1}", guid, ext);
CloudBlockBlob blob = blobStorage.GetBlockBlobReference(uniqueBlobName);
I have been trying to obtain documentation about the method, but it looks like is no longer avaliable in docs.microsoft. I think than I am doing somethign fool. Any help is welcome.