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

前端 未结 5 2159
粉色の甜心
粉色の甜心 2021-02-13 04:33

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 applicati

5条回答
  •  攒了一身酷
    2021-02-13 05:06

    The disadvantage of storing as binary is that you blow the database size to incredible sizes. If you were to use an express edition of SQL Server, which is limited to 4GB per database, you photo gallery would "finish" quite soon.

    The advantage is that you can easily manipulate the access restrictions per file and per user. You just look at user rights and decide whether you serve back the image or not.

提交回复
热议问题