the output of this print looks like the chars in the generated files of the
function "fp_print_data_save". I hope that's right.
Insert in DB will work too. I use binding variables for insert- and
select-statement. A print of the fingerprintdata after the select from the
database will print the original data that were inserted before. The
selected values of fingerprints and the associated bufferlength values are
stored in the following variables:
size_t bufferlength[50];
unsigned char buffer[50][2500]; // max. 50 fingerprints with max
bufferlength 2500
Both are global defined variables.
In main-function I will reconvert this fingerprint-data as follows:
// reconvert stored fingerprint-data for use in fprint-api
for (i=0;i<num_found_columns;i++) {
data[i] = fp_print_data_from_data(buffer[i][0], bufferlength[i]);
if (data[i]=='\0') { // get NULL?
printf("error\n");
}
}
"data" is defined in main as follows:
struct fp_print_data *data[50];
The problem is that " fp_print_data_from_data" allways returns NULL (I think
so, but not sure whether the test of the returned value is correct).
Is there a mistake in the definitions/assignments, or are I am on the wrong
track?
Kind regards
Alexander
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint