Skip to content

Commit 365db14

Browse files
Stream blob back to client rather than read into memory.
1 parent 319533f commit 365db14

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,7 @@ public Stream OpenFile(string path)
594594
return null;
595595
}
596596

597-
MemoryStream stream = new MemoryStream();
598-
blockBlob.DownloadToStream(stream);
597+
Stream stream = blockBlob.OpenRead();
599598

600599
if (stream.CanSeek)
601600
{

0 commit comments

Comments
 (0)