A
Alexander Stuckenholz
Hello.
I´m using the ado.net provider from sourceforge for SQLite database.
Till now everything works fine. But today i tried to enter some binary
data into
one row.
Here´s my code:
command.CommandText = "INSERT INTO _files VALUES ('" + obj.ID + "','"
+ this.GetTimestamp() + "',?,'" + obj.DataLength + "','" +
obj.Filename + "')";
command.Parameters[0].DbType = System.Data.DbType.Binary;
command.Parameters[0].Value = (object) obj.Data;
The row in the table has the type LONGBINARY.
SQLite just inserts the string representation of the byte array into
the
row but not the data!
Any ideas?
Alex
I´m using the ado.net provider from sourceforge for SQLite database.
Till now everything works fine. But today i tried to enter some binary
data into
one row.
Here´s my code:
command.CommandText = "INSERT INTO _files VALUES ('" + obj.ID + "','"
+ this.GetTimestamp() + "',?,'" + obj.DataLength + "','" +
obj.Filename + "')";
command.Parameters[0].DbType = System.Data.DbType.Binary;
command.Parameters[0].Value = (object) obj.Data;
The row in the table has the type LONGBINARY.
SQLite just inserts the string representation of the byte array into
the
row but not the data!
Any ideas?
Alex