readonly ImageConverter _imgConvertor = new ImageConverter(); ... ... oleDbCommand.Parameters.AddWithValue("@MojavezImage", ((byte[])_imgConvertor.ConvertTo(picMojavezImage.Image, typeof(byte[]))));
byte[] data; using (MemoryStream ms = new MemoryStream()) { myImage.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); data = ms.ToArray(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)