I am working on a project where I have to save all kinds of files in a database (PDF, images, video's, ...). Is this possible with a normal database? At this time the files are stored on one project in the static files but because I have two projects I would like a more central storage.
Asked
Active
Viewed 28 times
0
-
what do you mean about safe? Do you want to save a file in database? – XAMT Mar 23 '20 at 08:42
-
1Execuse me for the typo, I want to SAVE them. – bertilvandekerkhove Mar 23 '20 at 08:48
-
2Does this answer your question? [How to save Images to database using ASP.NET Core?](https://stackoverflow.com/questions/42741170/how-to-save-images-to-database-using-asp-net-core) – XAMT Mar 23 '20 at 08:52
-
You can save any file into SQL Server tables in varbinary DataType or you can use FileTable. – XAMT Mar 23 '20 at 08:54
-
So this will also work for PDF's and video's? – bertilvandekerkhove Mar 23 '20 at 08:56
-
You can save any file to the database with this code, but beware of FileSize and security issue of malicious files! – XAMT Mar 23 '20 at 08:59
-
Okay, will take that into account! Thanks! – bertilvandekerkhove Mar 23 '20 at 09:11