Microsoft Windows Azure Storage BlockBlob Intro

I just wanted to show a quick example of how to save a basic item in Microsoft Windows Azure Storage using BlockBlob storage.

Basically using the simplest process it takes about 8 steps to successfully save an item in Azure Storage.

  1. Get the CloudStorageAccount
  2. Get a CloudBlobContainer
  3. If container doesn’t exist create it
  4. Get a CloudBlockBlob from the CloudBlobContainer
  5. Create a MemoryStream for your byte array
  6. Set the permissions
  7. Set the content-type
  8. Upload the stream

In code this looks like this

morecode

and click here to download a simple little Azure BlockBlob storage manager that I created to help with the process.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s