Which action result in ASP.NET Core can be utilized to send binary content as the response?

  • FileResult
  • ObjectResult
  • RedirectResult
  • ContentResult
To send binary content as the response in ASP.NET Core, you should use the FileResult action result. This result type allows you to send files, such as images, PDFs, or any binary data, in response to a client request. You can specify the file's content type, name, and other details.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *