How to create bitmap from byte array?
You’ll need to get those bytes into a MemoryStream: Bitmap bmp; using (var ms = new MemoryStream(imageData)) { bmp = new Bitmap(ms); } That uses the Bitmap(Stream stream) constructor overload. UPDATE: keep in mind that according to the documentation, and the source code I’ve been reading through, an ArgumentException will be thrown on these conditions: … Read more