How to store files in a SQL Server database using Entity Framework Core (Code-First) in an ASP.NET Core app?
I have tried using Filestream but unfortunately
Filestream
You can convert the file bytes to a byte array.
public byte[] Avatar { get; set; }
Examine the accepted answer in the analogous approach for EF6: Save and retrieve image (binary) from SQL Server using Entity Framework 6