public byte[] GetBlob(string containerName, string blobName) { CloudBlobContainer container = _blobClient.GetContainerReference(containerName); _blockBlob = container.GetBlockBlobReference(blobName); _blockBlob.FetchAttributes(); long fileByteLength = _blockBlob.Properties.Length; byte[] fileContents = new byte[fileByteLength]; _blockBlob.DownloadToByteArray(fileContents, 0); return fileContents; }