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.
Loading...
Related Quiz
- Which framework is often used in conjunction with ASP.NET Core for unit testing?
- How do integration tests in ASP.NET Core typically differ from end-to-end tests in terms of scope and coverage?
- What is the primary purpose of routing in ASP.NET Core?
- Why is exception handling important in ASP.NET Core applications?
- The default configuration system in ASP.NET Core is no longer web.config but instead uses _________ files.