Images in database vs file system

前端 未结 10 806
甜味超标
甜味超标 2020-11-29 23:23

We have a project coming up where we will be building a whole backend CMS system that will power our entire extranet and intranet with one package. The question I have been

10条回答
  •  -上瘾入骨i
    2020-11-29 23:39

    I would not store images in the database for one reason (my answer comes from sql server):

    I would not want SQL Servers Data Cache Populated by simple images for the web site. I want the data cache to actually have data in it. Also if you have a multi-tiered architecture its much easier to pass a URL for an image than a blob of binary data. Where you do run into issues though if you only want certain people to see the images (security).

提交回复
热议问题