private byte[] getImageStream(PictureBox pictureBox1)
{
byte[] photoStream = null;
Image img = this.pictureBox1.Image.Clone() as Image;
MemoryStream ms = new MemoryStream();
this.pictureBox1.Image.Save(ms,System.Drawing.Imaging.ImageFormat.Bmp);
byte[] photoSteam = new byte[ms.Length];
ms.Read(photoStream,0,(int)ms.Length);
ms.Close();
ms.Dispose();
return photoSteam;
}
出现GDI+一般性错误!!!