How to Return a File With ASP.NET Core Web API

Опубликовано: 10 Октябрь 2024
на канале: Code Maze
1,907
66

►► Master Web API development Best Practices: https://bit.ly/3TnqoFQ
►► Build great web apps in Blazor WebAssembly: https://bit.ly/437g87T
►► Support us on Patreon and get the source code:   / codemaze  

In this video, I will show you how to return a file from a NET Core Web API Action. You will see two ways to return a file, using the Byte Array and using the Stream class. You will also see how to convert an image into a proper format to be returned from Web API.

FOLLOW US ON SOCIAL MEDIA!
►►   / marinko-spasojevic  
►►   / codemazeblog  
►►   / codemazeblog