I am trying to save some byte[] data in a column my "ormlite_config.txt" files for the field is as below
# --field-start--
dataType=DataType.BYTE_ARRAY
fieldName=faceRecogData
# --field-end--
The class which describes my Table has this variable as below:
@DatabaseField(dataType = DataType.BYTE_ARRAY)
public byte[] faceRecogData;
But the below line, which returns the object throws this error.
m_recognitionTable = FacialProcessingApp.getHelper(FacialProcessingApp.getContext(), databaseHelper).getRecognitionTable();
java.sql.SQLException: ORMLite does not know how to store class [B for field 'faceRecogData'. byte[] fields must specify dataType=DataType.BYTE_ARRAY or SERIALIZABLE
Can someone tell me what am I missing here? The above code is working fine without the byte[] field.