如何在sql数据库中保存文件以便我们可以检索它 [英] how to save a file in sql database so that we can retrieve it

查看:93
本文介绍了如何在sql数据库中保存文件以便我们可以检索它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Windows应用程序C#将文件保存在数据库中,以便可以在Web应用程序ASP.NET中检索它.

i want to save a file in database using windows application C# so that i can retrieve it in web application ASP.NET

推荐答案

如果它是图像文件,您可以添加Image数据类型列,如果不只是使用BLOB.
看看这篇关于如何存储图像的文章,因为BLOB非常相似:
在SQL Server中存储或保存图像 [
if it is an image file, you can add an Image datatype column, if not just use a BLOB.
Have a look to this article about how to store images, for BLOB is very similar:
Store or Save images in SQL Server[^]


这篇关于如何在sql数据库中保存文件以便我们可以检索它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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