When dealing with file downloads in ASP.NET Core, which action result allows you to send a byte array as the response along with a download dialog to the client?

  • FileContentResult
  • ObjectResult
  • JsonResult
  • StatusCodeResult
The FileContentResult action result in ASP.NET Core is used to send a byte array as the response along with a download dialog to the client. It's commonly used for file downloads like PDFs, images, or other binary files. The response content is a byte array, and you can specify the file's content type and download filename.
Add your answer
Loading...

Leave a comment

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