OleDbCommand and = new OleDbCommand();
c.Open();
and.Connection = c;
and.CommandText = "SELECT * FROM MaleShoes WHERE IDhere=ID ";
OleDbDataReader read = and.ExecuteReader();
while (read.Read())
{
label6.Text = (read[1].ToString());
textBox1.Text = (read[2].ToString());
pictureBox1.Image = (read[3].ToString());
}
c.Close();
我收到了这个错误:
错误 1 无法将类型“字符串”隐式转换为“System.Drawing.Image”
我应该如何解决它?
我的图片在我的数据库中的第三列。