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 .
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.
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.
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.
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.
Note: In this, the local storage account will be used, so make sure you're running your local storage emulator in this example.
Don't forget the enctype attribute. I always forget that, and then the files won't be uploaded. Just sayin'.
The code below simply collects the file upload and slams it into Azure Blob Storage.
Yes, really. Looking at the Azure blob storage account in ClumsyLeaf's CloudXPlorer, you'll see images that are uploaded during testing.
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.