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

preview_player
Показать описание

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!
Рекомендации по теме
Комментарии
Автор

Thank you all for watching and for your support.

CodeMaze
Автор

Simple and straight to the point. Nice video, mate :)

joaogabrielv.m
Автор

Thanks a lot for your awesome video
For better performance should I return byte[] or memory stream?

Tamer_Ali
Автор

I hope you take about SyncStream and NullStream and also MemoryStream and how and when to use them

Tamer_Ali
welcome to shbcf.ru