title: how to attach file(any file) to sql command with OleDB, and how to read it from access DB
body: <p>this is the test code that I'm trying to add a local photo by address to my access db</p>
  <p>the test table has two columns int id, object file</p>
  <pre><code>  [Theory]
          [InlineData(&quot;test&quot;, @&quot;D:\download\up.png&quot;)]
          public void InsertImage(string table,string address)
          {
              string query = SQL_Queries.Insert(table, new List&lt;object&gt;() { 0, &quot;@file&quot; });
              //query = 'insert into test values(0,@file);'
              Assert.True(Access.Execute(query,address));
          }
  </code></pre>
  <p>this is the access execute code which returns true or false if succeed</p>
  <pre><code>       public static bool Execute(string command, string address)
      {
          FileInfo file = new FileInfo(address);
          try
          {
              ConnectionState(true);
              OleCommand = new OleDbCommand(command, Connection);
              OleCommand.Parameters.AddWithValue(&quot;@file&quot;, file);
              OleCommand.ExecuteReader();
          }
          catch (Exception err)
          {
              Error = err.Message;
              ConnectionState(false);
              return false;
          }
          ConnectionState(false);
          return true;
      }
  </code></pre>
  <p>gives me an error
  <code>cannot perform that operation</code></p>