Skip to content

Commit 9aa46c6

Browse files
committed
Port #156 to v2 - Stream blob back to client rather than read into memory. - thanks Darren
1 parent c0d7b69 commit 9aa46c6

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
@@ -684,8 +684,7 @@ public Stream OpenFile(string path)
684684
return null;
685685
}
686686

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

690689
if (stream.CanSeek)
691690
{

0 commit comments

Comments
 (0)