Using asp.net core web api, I want to have my controller action method to return an jpeg image stream. In my current implementation, b
PhysicalFile helps to return file from Asp.Net Core WebAPI with a syntax simple
[HttpGet] public IActionResult Get(int imageId) { return PhysicalFile(@"C:\test.jpg", "image/jpeg"); }