Skip to content

How to Write Text to a CloudBlockBlob in Windows Azure Blob Storage

Robert Greiner
Robert Greiner
1 min read

I found myself wanting to write some text to Azure Blob Storage using the new Azure SDK 2.0. Things are a little different here, all of the stream methods from previous SDKs have been replaced by UploadFromStream().

This makes things cleaner in the future, and is a bit easier to use. However, your existing code might break when you upgrade to SDK 2.0. Here's the best way I've found to write text to a new file in Blob Storage.

Did this help? I'd love to hear about it.

Please consider subscribing, it's free.
Technology

Robert Greiner Twitter

Professional optimist. I write a weekly newsletter for humans at the intersection of business, technology, leadership, and career growth.


Related Posts

Members Public

Navigating the Upside Down as a Technology Leader

Ideas for leading technology organizations with confidence and creativity.

Navigating the Upside Down as a Technology Leader
Members Public

Artist for a Day

The future of creative output is multiplied by AI.

Artist for a Day
Members Public

The Auto Industry's Cloud Awakening

Auto manufacturers are behind the cloud adoption curve but are well-positioned to unlock the future of mobility by building foundational capabilities across six key areas.

The Auto Industry's Cloud Awakening