社区
C#
帖子详情
如何从数据库中读取图象
skydaxia
2003-08-21 11:19:27
如何从sql server数据库中读取图象(c#的)
...全文
29
4
打赏
收藏
如何从数据库中读取图象
如何从sql server数据库中读取图象(c#的)
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
saucer
2003-08-21
打赏
举报
回复
HOW TO: Copy a Picture from a Database Directly to a PictureBox Control with Visual C#
http://support.microsoft.com/default.aspx?kbid=317701
skydaxia
2003-08-21
打赏
举报
回复
要加载到picturebox
panyee
2003-08-21
打赏
举报
回复
<%@Page language="C#"%>
<%@import namespace="System.Data"%>
<%@import namespace="System.Data.SqlClient"%>
<script language="C#" runat="server">
public void Page_Load(Object o, EventArgs e)
{
int ImgID = Convert.ToInt32(Request.Params["id"]);
string connStr = ConfigurationSettings.AppSettings["ConnectionString"];
SqlConnection conn = new SqlConnection(connStr);
string sql = "select * from t_imgs where id = @ImgID";
SqlCommand cmd = new SqlCommand(sql, conn);
cmd.Parameters.Add("@ImgID", SqlDbType.Int).Value = ImgID;
conn.Open();
SqlDataReader read = cmd.ExecuteReader();
read.Read();
Response.ContentType = (string)read["type"];
Response.OutputStream.Write((byte[])read["imgData"], 0, (int)read["imgSize"]);
Response.End();
conn.Close();
}
</script>
saucer
2003-08-21
打赏
举报
回复
HOW TO: Read and Write BLOB Data by Using ADO.NET with Visual C# .NET
http://support.microsoft.com/default.aspx?kbid=309158
Visual C++源代码 157 如何
读取
数据库
记录的图像字段
Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
读取
数据库
记录的图像字段Visual C++源代码 157 如何
VC在
数据库
中
读写图像文件
VC在
数据库
中
读写图像文件,可运行,讲述从
数据库
中
怎么
读取
图像文件,感兴趣的朋友可以下载
数据库
中
图像的
读取
2
数据库
中
图像的
读取
cnnnnkdfkfgikriit nghjh
数据库
中
图像的
读取
(c#+sql2005)
可以学习从
数据库
读取
图象
的方法,
图象
在
数据库
里以什么形式储存.连接
数据库
方法.
delphi 何
读取
数据库
记录图像.
delphi 何
读取
数据库
记录图像.对开发者帮助很大的
C#
110,534
社区成员
642,575
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章