storing images in sql server

依然范特西╮ 提交于 2019-12-05 12:04:57

1) I may be making a wild assumption here, but if your images are going to be digital photo's then you may want to consider storing Exif metadata attributes that all(if not, 99%) digital cameras generate.

2) No impact in performing a backup with filestream, SQL Server does all the heavy lifting here. Filestream data will be part of your database .BAK file, so you wont need to do any other file system backups.

What you may have not considered is that as FILESTREAM is a new feature & thus can't be used with some other sql server features such as:

  • database mirroring
  • Replication (can't replicate filestream columns)
  • database snapshots

backup will store the images in it to keep transactional consistency. as for the attribs it depends on what your needs are. i can't think of any other attributes you're missing though.

I would also put in the encoding (jpeg, gif, png, bmp...), the MIME type (image/png) etcetera, so you don't have to parse the file name every time; also the file size (if you need to display it).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!