使用SQL Server的ASP.NET文件处理 [英] ASP.NET File Handling with SQL Server

查看:66
本文介绍了使用SQL Server的ASP.NET文件处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目将处理文件.表示我要存储文件(* .DOC,*.JPG,*.PDF等).但是如何将其存储在SQL SERVER中,则需要使用哪种数据类型.
请帮我.
如果可能的话,请帮我提供一些示例代码.

在此先感谢.

My project will handle files. Means I want to store files(*.DOC,*.JPG,*.PDF etc). But how to store it in SQL SERVER, what data type need to be used.
Please help me.
If possible then please help me with some sample code.

Thanks in Advance.

推荐答案

请参考以下链接:
对于pdf/xls/doc:
在SQL中存储和检索doc/pdf/xls文件服务器 [ ^ ]
对于图片(jpg):
使用C#从SQL Server数据库中插入和检索图像 [ ^ ]
Please refer following links:
For pdf/xls/doc:
Storing and Retrieving doc/pdf/xls files in SQL Server[^]
For Images(jpg):
Inserting and Retrieving images from SQL Server Database using C#[^]


将文件保存到SQL Server数据库 [ ^ ]
Saving and Retrieving File Using FileStream[^]
Save Files to SQL Server Database[^]


,您可以使用图像类型将文件存储在数据库中.
you can use image type to store the files in database.


这篇关于使用SQL Server的ASP.NET文件处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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