Windows Azure BLOB Storage (BlockBlob)

Posted: August 20, 2013 in Live in a Cloudy World, Windows Azure
Tags: , , , ,

Previously I have blogged about Windows Azure Blob Storage, getting here in more details about it. The Windows Azure Blob Storage is the unstructured data, where a lot of solutions and services is based on. The BlockBlob is a solution based on the Blob Storage that mainly helps optimize the performance. The Blob storage is a perfect way to store data, from different kind, from PDFs, Docs, to PNG, JPEG or AVIs and others.

Now to optimize the transfer of the data Windows Azure Storage introduced the Windows Azure Block Blob that helps dividing the large blobs in smaller blocks to facilitate the transfer between the Windows Azure datacenter and the clients that are trying to access the data. One of the main problems that the BlockBlob helps avoid is that when sending a specified blob to the client, an error may occur when transferring these packets, one of these packets may face any kind of problem. Dropping any kind of these packets will require the transfer of the whole blob another time. However if you are using the Windows Azure BlockBlob, when sending a BlockBlob from the server to the Client, this blob is divided into small blocks if any of these faces any kind of problems the server will only transfer the block dropped.

BlockBlob let you upload a large block efficiently uploaded. The maximum size of a block is 4 MB maximum and the maximum size of the blob block is 200 GB. Each block has a block ID and the block is not committed until you give the all the blocks their IDs. With blob block you can upload multiple blocks parallel in the same time decreasing the time of uploading. You can upload the blocks in any order and define their sequence in the final block list.

You can also find an example for building an application using .Net and C# to start working with the Windows Azure BlockBlob. You can use something like the following code, where it represents another small brief introduction into the Windows Azure BlockBlob but using the Node JS.

var azure = require(‘azure’);

var blobservice= azure.createBlobService();

var options = {contentType: request.uploadedFile.Type };

blobservice.createContainerIfNotExists(request.containerName, function(error){


response.send(statusCodes.Ok, {message:’Container Created’});



blobservice.createBlockBlobFromFile(request.containerName,request.fileName, request.uploadedFile.path, options, function(error)


response.send(statusCodes.OK, {message:’blockblob created’});



You can find another details about the other type of Windows Azure PageBlob in this post.

With the introduction of the Windows Azure Media Services, you might not need to use the Windows Azure BlockBlob especially that the Windows Azure Media Services mainly helps a lot in streaming the Media files. However if you are working with files with a large size of file, you will certainly have to think about using the Windows Azure BlockBlob.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s