搜索
编程论坛
→
.NET专区
→
『 C# 论坛 』
→ 如何从数据库中读出图片,并在pictureBox中显示
标题:
如何从数据库中读出图片,并在pictureBox中显示
只看楼主
jiashaopeng
等 级:
新手上路
帖 子:2
专家分:0
注 册:2008-1-9
第
11
楼
得分:0
我QQ243571407
2008-01-09 15:23
andey
等 级:
新手上路
威 望:
4
帖 子:938
专家分:0
注 册:2007-7-18
第
12
楼
得分:0
[url]http://bbs.[/url]
里面有详细的方法
msdn == 葵花宝典!!!
QQ:122768959
2008-01-09 15:49
x520177
等 级:
新手上路
帖 子:1
专家分:0
注 册:2008-4-7
第
13
楼
得分:0
//把 图片 ---》 字节数组
MemoryStream mm=new MemoryStream();
this.pictureBox1.Image.Save(mm,this.pictureBox1.Image.RawFormat);
byte [] uu=mm.ToArray();
//图片读出来
byte[] uu = (dr[3] as byte[]);
MemoryStream ms=new MemoryStream(uu);
this.pictureBox1.Image = Image.FromStream(ms);
2008-04-10 23:08
13
2/2页
1
2
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-163014-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 1.520551 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved