110,546
社区成员
发帖
与我相关
我的任务
分享
[WebMethod]
public byte[] getBitmap()
{
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(40, 40);
System.IO.MemoryStream stm = new System.IO.MemoryStream();
bmp.Save(stm, System.Drawing.Imaging.ImageFormat.Jpeg);
return stm.GetBuffer();
}
接收到时,用这个转回去:
System.Drawing.Image.FromStream