I came up with a little side project on the plane ride home from Belgium. The world needed a dirt-simple Fluent wrapper around Azure Blob Storage to make it dirt-simple, I decided, and this is my first pass at making such a handy resource helper available. I'll get this thing on NuGet in the next few days, but here's a quick run-through of what BlobFu can do for you. Take a closer look at the code, as it's up on GitHub.com right now


Azure Blob Storage Fluent Wrapper

A library that makes it easy via a Fluent interface, to interact with Windows Blob storage. It gives you a very basic start to storing binary blobs in the Azure cloud.

What does BlobFu Do?

Here's the current set of functionality, demonstrated by an NUnit output of the unit tests used to design BlobFu. Note, more tests may be added as the project evolves.

BlobFu Unit Test Run

Using BlobFu Within ASP.NET

Here's the Hello World example to demonstrate one of the best uses for Azure Blob Storage - capturing file uploads. BlobFu makes this pretty simple.

Step 1 - Configure the Azure Blob Storage Connection String

Add an application or web configuration setting with the connection string you'll be using that points to your Azure storage account, as shown below.

Configuring a site or app with the blob connection string

Note: In this, the local storage account will be used, so make sure you're running your local storage emulator in this example.

running the storage emulator

Step 2 - Create an ASPX Page to Upload Files

Don't forget the enctype attribute. I always forget that, and then the files won't be uploaded. Just sayin'.

HTML form for uploading

Step 3 - Collect the Data

The code below simply collects the file upload and slams it into Azure Blob Storage.

saving blobs to blob storage


Yes, really. Looking at the Azure blob storage account in ClumsyLeaf's CloudXPlorer, you'll see images that are uploaded during testing.

checking the blob account using CloudXPlorer

Have Fun!

Give BlobFu a try. Hopefully it'll ease the process of learning how to get your blobs into Azure. These helper methods can also be used as WebMatrix 2 helpers, so give that a spin (and watch this space for more on this) if you get a moment.

Please let me know of any issues or enhancements you observe (or think about) using the Issues link for this project.

Brady Gaster
Hi! I'm a christian dad who lives near Seattle, where I work with the talented folks at Microsoft to create compelling demonstrations for conferences that instruct and inspire developers who want to party in the cloud.