use this to save data:
con.Open();
cmd = new SqlCommand("insert into Shops (ImageFile) values (@ImageFile)", con);
System.IO.MemoryStream msGoodSrc = new System.IO.MemoryStream();
pictureBox1.Image.Save(msGoodSrc, pictureBox1.Image.RawFormat);
byte[] arrPicGoodSrc = msGoodSrc.GetBuffer();
msGoodSrc.Close();
cmd.Parameters.Add("@ImageFile", DbType.Binary).Value = arrPicGoodSrc;
cmd.ExecuteNonQuery();
con.Close();
and this is for read image data:
DataTable dt = new DataTable();
con.Open();
cmd = new SqlCommand("select ImageFile from Shops where Id='???'", con);
SQLeDataAdapter dataadapter = new SQLeDataAdapter(cmd);
dataadapter.Fill(dt);
byte[] arrPicture = (byte[])(dt.Rows[0][0]);
System.IO.MemoryStream ms = new System.IO.MemoryStream(arrPicture);
pictureBox1.Image = System.Drawing.Image.FromStream(ms);
ms.Close();
con.Close();