I do know that there is a answer here
If you want to save files of any type in SQL Server then you should use the
varbinary data type. You would use
varbinary(max) unless you know that the files will be small. You can then convert your images to a
Byte array and save that to the database.
You can enable the FILESTREAM option on your SQL Server instance these days and it will then store the data outside the main MDF file although that will be transparent to your code, so you keep using the same queries as you would otherwise.