Reputation: 1507
I want to be able to copy a database into a byte array and then query it. Is this possible?
For example, with a text file I can use..
byte[] file = File.ReadAllBytes;
..and then read the byte array with..
StreamReader rdr = new StreamReader(new MemoryStream(file));
Upvotes: 2
Views: 1633
Reputation: 564333
No. In order to query it, the database classes will require the database to reside on disk. MDB files, in particular, require a lock file to be generated when you open the database.
Upvotes: 2