Код: Выделить всё
private async Task GetImageStream(Domain.Entities.Courses.Image image)
{
var ms = new MemoryStream(image.File!["Content"].AsByteArray);
ms.Seek(0, SeekOrigin.Begin);
return new FileStreamResult(ms, image.File!["ContentType"].ToString())
{
FileDownloadName = image.File!["FileName"].ToString()
};
}
Подробнее здесь: https://stackoverflow.com/questions/785 ... rom-an-api
Мобильная версия