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

AI Rule #1 - Customer First

In 1985, Warren Buffett wisely said, "The first rule of investment is don't lose. And the second rule of investment is don't forget the first rule, and that's all the rules there are." Similarly, the first rule of AI investment is to

AI Rule #1 - Customer First
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