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.
- Get the CloudStorageAccount
- Get a CloudBlobContainer
- If container doesn’t exist create it
- Get a CloudBlockBlob from the CloudBlobContainer
- Create a MemoryStream for your byte array
- Set the permissions
- Set the content-type
- Upload the stream
In code this looks like this
and click here to download a simple little Azure BlockBlob storage manager that I created to help with the process.