I'm trying to read a Microsoft Access Database using C#. I'm using the OLE-DB classes. The Problem is that this code
OleDbDataReader reader = Command.ExecuteReader();
while (reader.Read())
{
Console.WriteLine(reader.GetFieldType(0) + "" + reader.GetFieldType(1) + "" + reader.GetFieldType(2) +
"" + reader.GetFieldType(3) + "" + reader.GetFieldType(4) + "" + reader.GetFieldType(5));
}
tells me, that the 5th field is from the datatype string. But it's an attached file. When I'm trying to read this string, it is empty.
System.Int32 System.String System.String System.Int32 System.DateTime System.String
Is there a way to read attached files from a database?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…