public static Image bytes2Image(byte[] bytes) { MemoryStream ms = new MemoryStream(bytes); return Image.FromStream(ms); }