Friday, July 1, 2011

tangible.AzureIO - Accessing BlobStorage like System.IO

Writing and reading blobs to and from the Windows Azure BlobStorage isn’t as comfy as one could wish. So why not dealing with Files transferred to the cloud as if they were files we are used to work with?

Nothing looks smoother than this simple call to create a new file and write some bytes in it:

  1: System.IO.File.WriteAllBytes("MyFile.ext", new byte[] { ... });

Doing the same in the cloud requires connections to the CloudStorage, creating a BlobClient, dealing with containers and different BlobTypes … A huge overhead to what one really needs in this case. But how about this call doing exactly the same as shown above in the local file system – only in the cloud:

  1: tangible.AzureIO.File.WriteAllBytes("File.ext", new byte[] { ... });

Easy, isn’t it?

The tangible.AzureIO library contains nearly all functionality offered by System.IO for the cloud. A must have for developers who want to move their applications to the cloud with least changes! Find pendants to System.IO.Path in tangible.AzureIO.Path, System.IO.Directory in tangible.AzureIO.Directory and so on…

I spent a lot of time on this project and finally may publish a first beta version here. The library for download below is delivered “as is” – without any warranty and claims neither completeness nor faultlessness. All right reserved. You may use it in any of your projects – but it’s still a beta and subject to change.

I appreciate any comments and reviews on this library! So feel free to leave a comment to this blog post or send me an email to nico[at]

Download tangible.AzureIO here:

No comments:

Post a Comment