From: Joseph Cohen on
Hello,

I am trying to insert data into a mysql database using the mysql LOAD DATA INFILE command. I am storing a matrix of uint8 in a text file, which mysql then reads and adds to the database. However, in the process, it corrupts the data. But when I use fastinsert the data is properly stored.

Whats going on? How can I store the data in the textfile so that mysql reads it properly. Right now I am using fwrite like so:

fwrite(file,data)

thanks!