Skip to content

Commit d4f1468

Browse files
committed
Revert "Stream blob back to client rather than read into memory."
This reverts commit 365db14.
1 parent 44ce92a commit d4f1468

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
@@ -640,7 +640,8 @@ public Stream OpenFile(string path)
640640
return null;
641641
}
642642

643-
Stream stream = blockBlob.OpenRead();
643+
MemoryStream stream = new MemoryStream();
644+
blockBlob.DownloadToStream(stream);
644645

645646
if (stream.CanSeek)
646647
{

0 commit comments

Comments
 (0)