Image image = Image.FromFile(file); System.IO.MemoryStream s = new System.IO.MemoryStream(); image.Save(s, image.RawFormat); Byte[] bfye = s.ToArray();