Azure Storage Blobs: what blob do I get with GetBlobReference ()?

I'm a little confused in blobs. I read several articles that say that there are two types of blocks, blocks and pages, but I see a third in the SDK library:

container.GetBlockBlobReference(); // Block Blob, max 64Mb per block, max 200Gb in total. container.GetPageBlobReference(); // Page Blob, aligned to 512bytes pages, max 1Tb in total. container.GetBlobReference(); // ?? 

Is CloudBlob a CloudBlockBlob or CloudPageBlock ? What restrictions apply? Do I have to worry about file size and put blocks or pages when I use this link?

I read MSDN , but I can not find which one is there.

+8
blob azure azure-storage azure-storage-blobs
source share
2 answers

GetBlobReference returns a CloudBlob object. This can represent any kind of blob. The .ToPageBlob and .ToBlockBlob will facilitate the application of the object, but this has nothing to do with the type of existing blob. The blood that exists has one type or another specified when it was created.

If you call .Create on a CloudPageBlob object, this will create a block page structure in Windows Azure.

If you call .UploadText() on a BlockBlobObject (or shared CloudBlob ), this will create a block blob in Windows Azure.

In other words, GetBlobReference returns you a generic link to blob (not for any type).

+13
source share

It seems that a block block is always created on Azure when you use a shared CloudBlob object. However, you can retrieve block blobs and page drops from the repository using this class.

+2
source share

All Articles