日期:2014-05-19  浏览次数:20687 次

图片显示
请问用socket提取到图片文件(image/png
),如何显示在图片框中,谢谢。

------解决方案--------------------
Image.FromStream
------解决方案--------------------
FileStream fs=new FileStream( "d:\\aa.jpg ",FileMode.Open);

byte [] bytepic=new byte[fs.Length];

fs.Read(bytepic,0,(int)fs.Length);

this.pictureBox1.Image=Image.FromStream(fs);