Skip to content

Commit adff24d

Browse files
committed
Revert "Port #156 to v2 - Stream blob back to client rather than read into memory. - thanks Darren"
This reverts commit 9aa46c6.
1 parent f32c79e commit adff24d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ public Stream OpenFile(string path)
684684
return null;
685685
}
686686

687-
Stream stream = blockBlob.OpenRead();
687+
MemoryStream stream = new MemoryStream();
688+
blockBlob.DownloadToStream(stream);
688689

689690
if (stream.CanSeek)
690691
{

0 commit comments

Comments
 (0)