Change ReadAllBytes to ReadAllBytesAsync in PicController
This commit is contained in:
parent
0cb8424fdc
commit
fb9a2d2449
@ -46,7 +46,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers
|
||||
string imageFileExtension = Path.GetExtension(item.PictureFileName);
|
||||
string mimetype = GetImageMimeTypeFromImageFileExtension(imageFileExtension);
|
||||
|
||||
var buffer = System.IO.File.ReadAllBytes(path);
|
||||
var buffer = await System.IO.File.ReadAllBytesAsync(path);
|
||||
|
||||
return File(buffer, mimetype);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user