Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is a better method for storing images - folder or SQL Server as binary?

I am planning the development of a photo gallery application for a client. I am developing the app in asp.net 3.5 and would like to develop it so that I can re-use the application across multiple platforms using various front-ends. Basically, I am wondering what are the dis-advantages and advantages of storing images in the database as binary files as opposed to simply storing the files in an application folder.

Any advice would be greatly appreciated!

Thanks, Tristan

like image 574
TGuimond Avatar asked Feb 09 '10 15:02

TGuimond


1 Answers

SQL Server 2008 supports FILESTREAM storage.

The files are stored on an NTFS volume like plain files, but are subject to transaction control and can be accessed via special file names passed to Win32 API functions (and of course any API built upon it) with additional SQL Server security checks (like GRANT options etc).

like image 184
Quassnoi Avatar answered Sep 22 '22 16:09

Quassnoi