Brian Pedersen's Sitecore and .NET Blog
UPDATE 2021-06-29: Microsoft have change the approach to storage accounts. Read the new way here: Read and Write blob file from Microsoft Azure Storage with .NET Core.
In order to read a blob file from a Microsoft Azure Blob Storage, you need to know the following:
- The storage account connection string. This is the long string that looks like this:
- The blob storage container name. This is the name in the list of “Blobs”.
- The blob file name. This is the name of the blob inside the container. A file name can be in form of a path, as blobs are structured as a file structure inside the container. For ecample: folder/folder/file.extension
You also need this NuGet package:
The code is pretty simple:
The usage is equally easy:
MORE TO READ:
View original post 7 more words