From adff24de3422377731720b94fe60e4544ba5afbf Mon Sep 17 00:00:00 2001 From: Jeavon Date: Wed, 19 Feb 2020 10:20:50 +0000 Subject: [PATCH] Revert "Port #156 to v2 - Stream blob back to client rather than read into memory. - thanks Darren" This reverts commit 9aa46c6b7dc7d394e5baa5d5670cec07ccef9cf8. --- src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs b/src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs index c10cc24..b5e2248 100644 --- a/src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs +++ b/src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs @@ -684,7 +684,8 @@ public Stream OpenFile(string path) return null; } - Stream stream = blockBlob.OpenRead(); + MemoryStream stream = new MemoryStream(); + blockBlob.DownloadToStream(stream); if (stream.CanSeek) {