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
I am assuming that you are trying to use the windows filestream for sql server, which is not yet supported by .NET Core. You have to store the file as a byte array as already said (which will convert to varbinary(max) in sql server) and copy the file content over when uploading using a memory-stream for instance.