我写的一段.仅供参考.
OleDbConnection con=new OleDbConnection (ab);
OleDbCommand command=new OleDbCommand ("insert into table1 values(@filename ,@size,@type,@imagadata)",con);
command.Parameters.Add("@filename",OleDbType.VarChar ,50 );
command.Parameters["@filename"].Value =filename;
command.Parameters.Add("@type",OleDbType.VarChar  ,20 );
command.Parameters["@type"].Value =type;
command.Parameters.Add("@size",OleDbType.BigInt,50 );
command.Parameters["@size"].Value =size;
command.Parameters.Add("@imagedata",OleDbType.VarBinary,1000 );
command.Parameters["@imagedata"].Value =byte1;
con.Open ();
Convert.ChangeType 
command.ExecuteNonQuery();