Introduction

Windows Azure provides various cloud enabled storage services and BLOB storage is one of them. BLOB stands for "Binary Large Object" that means unstructured data that typically includes images, documents, audio, video or other multimedia objects. The main purpose for using BLOB cloud services is it has a many advantages over storing files in local file systems.

As the MSDN suggests the advantages are:

And many more, for the time these are of more focus.

Concept Behind

Concept Behind

Storage Account: All access to Azure Storage is done using a storage account.

Container: A container provides a grouping of a set of BLOBs. All BLOBs must be in a container. An account can contain an unlimited number of containers. A container can store an unlimited number of BLOBs.

BLOB: A file of any type and size. There are two types of BLOBs that can be stored in Azure Storage: block and page BLOBs. Most files are block BLOBs. A single block BLOB can be up to 200GB in size. This tutorial uses block BLOBs. Page BLOBs, another BLOB type, can be up to 1TB in size and are more efficient when ranges of bytes in a file are modified frequently.

Background

This article mainly focuses on the use of cloud services such as here it is Azure, checking for containers in our development storage and creating BLOBs dynamically into it and uploading files to it, since it's being used in nearly every site.

To develop Azure Cloud enabled applications, we need to install the Software Development Kit (SDK) (a software development tool required to create applications using specific software) first. The best way to get the SDK is:

It will then redirect you to download the SDK.

Using the code

Points of Interest

Web Role in Windows Azure are special purpose services and provide a dedicated IIS used for hosting web applications, we can easily add and deploy applications to a Webrole and scale as per our compatibility depending on requirements. It is basically a front-end that appears to the users.

Worker Roles are processes that can do some work as the name suggests. For example, compressing an uploaded image automatically or on the fly, any changes in the database, best is notifications that are received.

The queue contains a set of messages and those messages should be queued. The main thing is that Web Role, Worker Role and Queues are Virtual Machines run on the cloud.