Im trying to fill a mysql row with my binary data.
With OleDb and Access everything works fine.
Now im using MysqlDriverCS and i got some problems. My source looks like this:
command.CommandText = "INSERT INTO _files VALUES ('" + obj.ID + "','" + this.GetTimestamp() + "',@data,'" + obj.DataLength + "','" + obj.Filename + "')";
((MySQLParameter) command.Parameters["@data"]).Value = obj.Data;
The obj.Data field returns a bytes array. But the row just contains the string representation ("byte") of the byte array.
I obtain the same results with TEXT fields!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.