[fprint] conversin of fprint data to store in database

Alexander Eichert loeghaire at googlemail.com
Fri Jan 9 15:00:08 GMT 2009


Hello fprint enthusiasts and professionals.

I want to build a simple billing-solution with fingerprint authentication.
Therefor I will use a MySQL-Database and the enroll- and verify-examples
included in libfprint.
The fingerprints should be stored in the database (later in a seperate table
with restricted grants).

Now my problem.

When I enroll a fingerprint, the function "fp_print_data_get_data" returns
every time a bufferlength of 2414 Byte.
But when I insert this converted fingerprint in the database, there will
only be a string with max. 9 Byte (this is calculated in the
verify-program).
I think there is a problem with pointers and/or the datatype of the
db-attribute which should store the converted fingerprint.
I'm not very experienced in using pointers
(for example:
    unsigned char **ret;
    size_t length;

    length = fp_print_data_get_data(data,ret);
)
and large db-datatypes like blob or text, so I'm not sure what I do.

Can somebody help with a tip?

I have attached the source-files to this mail, so it's easier to comprehend
my problem.


Kind regards

Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.reactivated.net/pipermail/fprint/attachments/20090109/85188a5b/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fprint_01.tar.gz
Type: application/x-gzip
Size: 3772 bytes
Desc: not available
Url : http://lists.reactivated.net/pipermail/fprint/attachments/20090109/85188a5b/fprint_01.tar.bin


More information about the fprint mailing list