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

Commit 0b4f446

Browse files
authored
Change ReadAllBytes to ReadAllBytesAsync in PicController (#1425)
1 parent 04ab127 commit 0b4f446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public async Task<ActionResult> GetImageAsync(int catalogItemId)
4646
string imageFileExtension = Path.GetExtension(item.PictureFileName);
4747
string mimetype = GetImageMimeTypeFromImageFileExtension(imageFileExtension);
4848

49-
var buffer = System.IO.File.ReadAllBytes(path);
49+
var buffer = await System.IO.File.ReadAllBytesAsync(path);
5050

5151
return File(buffer, mimetype);
5252
}

0 commit comments

Comments
 (0)