图像保存在sql或web文件夹中 [英] image save in sql or web folder

查看:102
本文介绍了图像保存在sql或web文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白EN好,所以请原谅!

i显示图片使用datalist

现在什么更好更正

图像保存在sql varbinary(max)或保存url图像在sql数据库中并将图像保存在文件夹中?

以及

当页面加载时哪个更快?

i do not understand EN good so excuse me!
i show image with use datalist
now what is better and correct
image save in sql varbinary(max) or save url image in sql database and save image in folder?
and also
when page is load which is faster?

推荐答案

这个一个问题是基于意见的问题,但简短的回答是将文件系统中的图像和文件存储为二进制格式的SQL Server。只需在SQL Server数据库表中保存图像的名称,但实际图像应保存在文件系统中。



还有另一个问题 here [ ^ ],与SQL Server相比,使用文件系统的共享更好。此外,请注意SQL服务器上的空间是昂贵的,将花费你很多。与SQL服务器(或任何其他数据库)相比,文件系统提供了更多空间,因此最好保存在文件系统而不是数据库中占用更多空间的更大文件和数据。
This one question is much of a opinion based question but short answer is to store the images and files in the File System not the SQL Server in binary format. Just save the name of the image in SQL server database table, but the actual image should be saved in the File System.

There is also another question here[^], that shares that using the File System is better as compared to SQL server. Also, please note that the space on SQL server is expensive and will cost you a lot. File system as compared to SQL server (or any other database) provides more space so it is better to save larger files and data that occupies more space in the file system rather than the database.


这篇关于图像保存在sql或web文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆