Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 8debda5

Browse files
davidfowlReubenBond
authored andcommitted
Don't read the file into memory
1 parent 6ad5e8f commit 8debda5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Services/Catalog/Catalog.API/Controllers/PicController.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public async Task<ActionResult> GetImageAsync(int catalogItemId)
3636
string imageFileExtension = Path.GetExtension(item.PictureFileName);
3737
string mimetype = GetImageMimeTypeFromImageFileExtension(imageFileExtension);
3838

39-
var buffer = await System.IO.File.ReadAllBytesAsync(path);
40-
4139
return PhysicalFile(path, mimetype);
4240
}
4341

0 commit comments

Comments
 (0)