[fprint] conversin of fprint data to store in database
Alexander Eichert
loeghaire at googlemail.com
Tue Jan 13 20:19:12 GMT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.reactivated.net/pipermail/fprint/attachments/20090113/cf2ca010/attachment.html
More information about the fprint
mailing list