Converting a bitmap to a byte array - VBForums
Converting a bitmap to a byte array - VBForums : "MemoryStream ms = new MemoryStream(); // Save to memory using the Jpeg format bmp.Save (ms, ImageFormat.Jpeg); // read to end byte[] bmpBytes = ms.GetBuffer(); bmp.Dispose(); ms.Close(); return bmpBytes;"