Azure Storage 2.0 – Blob Changes

posted in: Uncategorized | 0


I’d started out uploading files into Windows Azure Blog storage with the old sdk based on a few examples I’d seen. After I had it working I refactored, and upgraded my references to use the latest 2.0 Azure Storage 2.0. All of a sudden my code no longer compiles:

var blob = container.GetBlobReference(blobName);

so I change it over to what to me was a logical change to:

var blob = container.GetBlobReferenceFromServer(blobName);


This worked ok, except for my cases where i was inserting a new item into the blob. It actually tries to access the blob (so expects it to exist). So for this version the correct method for me was:

var blob = container.GetBlockBlobReference(blobName);



Technorati Tags: