string conStr = "Provider=Microsoft.ACE.OLEDB.12.0;" +
@"Data Source=C:\\Users\\CINDY\\Desktop\\ACSdb.accdb";
OleDbConnection conn = new OleDbConnection(conStr);
conn.Open();
string sql = "SELECT Picture From USER_ACCOUNT ";
OleDbCommand cmd = new OleDbCommand(sql, conn);
OleDbDataAdapter adapter = new OleDbDataAdapter(cmd);
DataSet data = new DataSet();
adapter.Fill(data, "cat"); // error ขึ้นมาแบบนี้ค่ะ No value given for one or more required parameters.
byte[] photo = (byte[])data.Tables["cat"].Rows[0]["Picture"];
MemoryStream streamPhoto = new MemoryStream();
streamPhoto.Write(photo, 78, photo.Length - 78);
pictureBox1.Image = Image.FromStream(streamPhoto);
conn.Close();