title: Get byte[] from the SqlDataReader?
body: <p>I have table with <strong>varbinary(MAX)</strong> parameter. After executing the query, i will store the result in SqlDataReader as it has multiple columns as output.</p>
  
  <pre><code>SqlCommand cmd = new SqlCommand("select leave_details from LeaveTable");
  SqlDataReader obj;
  con.Open();
  obj = cmd.ExecuteReader();
  </code></pre>
  
  <p>Now I want to convert the result for each row into byte[].</p>
  
  <p>This one is not working : :</p>
  
  <pre><code>byte[] b=null;
  obj.GetBytes(0,0,b,0,1024);
  </code></pre>