ASP.NET Core MVC, Get file from database, and render as image
问题 I have image data being stored in a SQL table with a field type of varbinary(max) I also store the image content type. Using Microsoft ASP.NET Core MVC and Dapper, I am trying to get the file back from the database and render it as an image. This is my FileModel : using System; namespace Brand.Models { public class FileModel { public Guid ID { get; set; } public string FileName { get; set; } public string FileType { get; set; } public byte[] FileData { get; set; } public int FileLength { get;