图片显示,该如何解决

图片显示请问用socket提取到图片文件(image/png),如何显示在图片框中,谢谢。[解决办法]Image.FromStream[解

图片显示
请问用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);