怎么样在picturebox中动态梆定图片 图片在数据库中是存储路径 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 pictureBox1.Image=Image.FromFile("路径"); 从数据库中用IO操作把图片读取出来,然后把这个流formater成对应的图片格式,然后赋给image 因为这个需要动态捆绑,我想把数据库中的图片捆绑在picturebox中,如下代码:cmAmend = (CurrencyManager) BindingContext[ds.Tables[0]];FileStream fs=new FileStream(str,System.IO.FileMode.Open,System.IO.FileAccess.Read);byte[] bytes=new byte[fs.Length];fs.Read(bytes,0,bytes.Length);fs.Close();MemoryStream ms=new MemoryStream(bytes);this.pictureBox1.Image=Image.FromStream(ms);如果这样动态捆绑的话,FileStream中的str怎么写啊 因为这个需要动态捆绑,我想把数据库中的图片捆绑在picturebox中,如下代码:cmAmend = (CurrencyManager) BindingContext[ds.Tables[0]];FileStream fs=new FileStream(str,System.IO.FileMode.Open,System.IO.FileAccess.Read);byte[] bytes=new byte[fs.Length];fs.Read(bytes,0,bytes.Length);fs.Close();MemoryStream ms=new MemoryStream(bytes);this.pictureBox1.Image=Image.FromStream(ms);如果这样动态捆绑的话,FileStream中的str怎么写啊 以一种访问权限不允许的方式做了一个访问套接字的尝试 求一个VS2008的下载地址 WCF服务超时 数据传递 键盘输入的问题 初学c#,简单问题,连接数据库 一个关于webdiyer分页组件URL重写的问题 用C#做程序启动前的进度条---◥◥◥◥◥◢◢◢◢◢◣◣◣◣◣◤◤◤◤◤ 水晶报表,曲线图的线如何加粗(在线等待......) 请问MS DEVELOPMENT ENVIRONMENT 关于多线程界面更新的几个问题。 用过dotnetbar的朋友进来说说心得?是否好用
我想把数据库中的图片捆绑在picturebox中,如下代码:
cmAmend = (CurrencyManager) BindingContext[ds.Tables[0]];
FileStream fs=new FileStream(str,System.IO.FileMode.Open,System.IO.FileAccess.Read);
byte[] bytes=new byte[fs.Length];
fs.Read(bytes,0,bytes.Length);
fs.Close();
MemoryStream ms=new MemoryStream(bytes);
this.pictureBox1.Image=Image.FromStream(ms);
如果这样动态捆绑的话,FileStream中的str怎么写啊
我想把数据库中的图片捆绑在picturebox中,如下代码:
cmAmend = (CurrencyManager) BindingContext[ds.Tables[0]];
FileStream fs=new FileStream(str,System.IO.FileMode.Open,System.IO.FileAccess.Read);
byte[] bytes=new byte[fs.Length];
fs.Read(bytes,0,bytes.Length);
fs.Close();
MemoryStream ms=new MemoryStream(bytes);
this.pictureBox1.Image=Image.FromStream(ms);
如果这样动态捆绑的话,FileStream中的str怎么写啊