title: query byte[] in petapoco
body: <p>I have a query in which I have to select Data which is of type byte.</p>
  
  <pre><code>byte[] data
  </code></pre>
  
  <p>My query is as follows:</p>
  
  <pre><code>private IEnumerable&lt;dynamic&gt; GetData(int fileID){
      return Connection.db.Query&lt;dynamic&gt;("select Data from [File] where id = @0",  fileID.ToString());
  }
  
  byte[] actual = file.GetData();
  </code></pre>
  
  <p>and I want to find the length as follows:</p>
  
  <pre><code>actual.Length
  </code></pre>
  
  <p>The problem with the above is that I have to find the length but GetData returns a dynamic object actual. </p>
  
  <p>How can I retrieve the Data and have its length?
  Is there a better way to query byte[] in PetaPoco?</p>