title: Object reference not set to an instance of an object. Error
body: <p>I am trying to get a picture from my Access Database into a Picturebox.
  But when I try to fill my DataRow whit the DataSet I get the following error:</p>
  
  <blockquote>
    <p>Object reference not set to an instance of an object</p>
  </blockquote>
  
  <p>Any help would be appreciated!
  I have the following code:</p>
  
  <pre><code>        OleDbConnection conn = new OleDbConnection(constr);
          conn.Open();
  
          string cmdstr = "SELECT Picture FROM Gegevens WHERE ID =" + id;
          OleDbCommand cmd = new OleDbCommand(cmdstr, conn);           
          OleDbDataAdapter da = new OleDbDataAdapter(cmd);
  
          DataSet ds = new DataSet();
          da.Fill(ds, "picture");
  
          DataRow dr = ds.Tables["Pictures"].Rows[0]; //Here i get the error!
  
          byte[] result = (byte[])dr["Picture"];
          int ArraySize = result.GetUpperBound(0);
  
          MemoryStream ms = new MemoryStream(result, 0, ArraySize);
          Picturebox1.Image = Image.FromStream(ms);
  
          conn.Close();
  </code></pre>