Alexander Eichert wrote:
> 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];
>
>
Enroll stores the written file in a binary field within the MySQL db.
Upon authentication simply query the binary field within the MySQL db to
do comparisons which would then write a local copy of the enrolled
fingerprint file?
I think that would be a better solution then trying to stream the
fp_print_data_from_data() to a db field.
Daniel, have you not included some optional compile options for database
support?
IE ./configure --enable-mysql OR ./configure --enable-ldap
> 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
--
Jason Gerfen
Systems Administration/Web application development
[email protected]
Marriott Library
Lab Systems PC
295 South 1500 East
Salt Lake City, Utah 84112-0806
Ext 5-9810
"Tomorrow isn't promised so we live for today"
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint