I am a novice when it comes to websites
i’m developing a website for a real estate company this site will have loads of pictures of houses for sale
i thought of storing the images in a database but i have been advised to use a folder instead
which would be the best method to use a database or folder considering that there will be images added to the site on a daily basis ?
thanks
It’s best performance wise to use the filesystem, and safety-management wise it’s better to use the DB (backups and consistency).
However, in SQL Server 2008, you can apply the
FILESTREAMattribute to a varbinary column, and SQL Server then stores the data for that column on the local NTFS file system.Read about FILESTREAM Storage in SQL Server 2008
Also refer to the following:
FILESTREAM Overview
Getting Traction with SQL Server 2008 Filestream