Show image from : I have small problem but I need your help.  I have successfully inserted pictures into the DB therefore, I am tried to access those images through datagridview.  Whenever I clcik dgv row/cell I need the picture(s) to appear in the picture box.  here is my code. 

  

    SqlConnection con = new SqlConnection(ConnectionString);
                    SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM Candidates WHERE CandidateID = '" + dataGridViewCandidate.SelectedRows[0].Cells[0].Value.ToString() + "'", con);
                    DataTable dt = new DataTable();
                    da.Fill(dt);
                    //dataGridViewCandidate.DataSource = dt;
                    byte[] binaryimage = (byte[])dt.Rows[0][1];
                    Bitmap image;
                    using (MemoryStream stream = new MemoryStream(binaryimage))
                    {
                        image = new Bitmap(stream);
                    }
                    EmployeePhoto.Image = image;

The error I am getting is below;

    Unable to cast object of type 'System.DateTime' to type 'System.Byte[]'

Thank you for your help.