title: datatable not accepting the value of varbinary
body: <p>the value buf has a datatype varbinary(max) and the value is 0x0000002D </p>
  
  <pre><code>string buF =
      "0x" + BitConverter.ToString((byte[])dt.Rows[i]["BuF"]).Replace("-", "");
      Label3.Text = buF;
  </code></pre>
  
  <p>i use the value to find the fileid</p>
  
  <pre><code>DataTable dt = new DataTable();
          SqlConnection connection = new SqlConnection();
          connection.ConnectionString = ConfigurationManager.ConnectionStrings["XYZ"].ConnectionString;
          connection.Open();
          SqlCommand sqlCmd = new SqlCommand("SELECT FileID FROM Backed where MachineID = @machineID  AND BuF =@buF", connection);
          SqlDataAdapter sqlDa = new SqlDataAdapter(sqlCmd);
          sqlCmd.Parameters.AddWithValue("machineID", strID);
          sqlCmd.Parameters.AddWithValue("buF", buF);
          sqlDa.Fill(dt);
          connection.Close();
  </code></pre>
  
  <p>i does not use the value of buf and i dont get the correct filid....</p>
  
  <p>but if i use this with the value0x0000002D instead of buf i get the file id... why is this happening... i tried everything but nothing seems to work</p>
  
  <p>i need help</p>