Skip to content

Commit 0cd5632

Browse files
authored
Merge pull request #156 from darrenferguson/feature/stream-blob
Stream blob back to client rather than read into memory.
2 parents 3d570dc + 365db14 commit 0cd5632

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

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

646645
if (stream.CanSeek)
647646
{

0 commit comments

Comments
 (0)