//image to byte[] MemoryStream ms=new MemoryStream(); byte[] imagedata=null; pictureBox1.Image.Save(ms,System.Drawing.Imaging.ImageFormat.Gif ); imagedata=ms.GetBuffer (); //byte[] to image ms = New IO.MemoryStream(by) img = Drawing.Image.FromStream(ms) 正在做这个,放在这边留着以后参考