ASP.NET Core Controller: Return text file

By default, returning a binary file via a Controller’s method is quite simple, like: C# [Route("Dynamic/{token}")] public IActionResult Dynamic(String token) { var item = cache.Where(o => o.Token == token).FirstOrDefault(); //jpg, png if (item.ImageBytes !=...
  [email protected]