I am using Filehelpers to read data from a database. I have based my code on the example in: http://filehelpers.sourceforge.net/example_sqlstorage_extract.html
My question is, given my code here, how do I handle binary fields?
public class StudentRecord
{
public string registration_id;
public string student_number;
public string card_number;
public string firstname;
public string lastname;
.... // How do I declare the binary data?
public BinaryData binarydata;
}
....
protected void FillRecordStudent(object rec, object[] fields)
{
StudentRecord record = (StudentRecord)rec;
record.registration_id = (string)fields[0];
record.student_number = (string)fields[1];
record.card_number = (string)fields[2];
record.firstname = (string)fields[3];
record.lastname = (string)fields[4];
// how do I do this?????
record.binarydata = (binary data)fields[5];
....
}
Any help would be much appreciated.