在数据库中存储多媒体文件的最佳方法 [英] Best way to store multimedia file in database
本文介绍了在数据库中存储多媒体文件的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在sql服务器数据库中存储图像,音频和视频文件的最佳方法是什么.
Hi,
what is the best way to store image,audio and video file in sql server database.
推荐答案
您有两个选择:
You have two options:
- 存储指向实际文件的链接(例如完整路径).
- 将整个二进制内容存储为 ^ ]在数据库中
- Store a link (e.g. full path) to the actual file.
- Store the whole binary content as a BLOB[^] inside the database
最佳方法实际上取决于您的需求.
The ''best way'' actually depends on your needs.
这篇关于在数据库中存储多媒体文件的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文