Skip to content

Commit

Permalink
Stream blob back to client rather than read into memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenferguson committed Jan 16, 2020
1 parent 319533f commit 365db14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,7 @@ public Stream OpenFile(string path)
return null;
}

MemoryStream stream = new MemoryStream();
blockBlob.DownloadToStream(stream);
Stream stream = blockBlob.OpenRead();

if (stream.CanSeek)
{
Expand Down

0 comments on commit 365db14

Please sign in to comment.