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.
Loading...
Related Quiz
- You are building a small website using ASP.NET Core MVC. For displaying data to the users, which component of the MVC pattern should you focus on?
- If you need to create a real-time communication application, the ________ template of ASP.NET Core is designed for this purpose.
- If you were to create a page in an ASP.NET Core MVC application that displays a list of movies, which component would be responsible for determining how this list is presented to the user?
- What purpose does the .NET Core CLI serve in ASP.NET Core development?
- What is the significance of the @model directive in a Razor view?