wiringbits / fingerprint-reader-daemon

A daemon service allowing web apps to read fingerprints from biometric devices using the Neurotechnology SDK
https://wiringbits.net/wiringbits/2020/03/20/reading-fingerprints-from-devices-on-webapps.html
MIT License
11 stars 4 forks source link

Issue convert toImage #2

Closed GustavoMucino closed 4 years ago

GustavoMucino commented 4 years ago

Hi! Thanks for share this project, I follow the steps and everything was ok, my device its a NitGen and I have been able to capture the fingerprint but it doesn´t returns the base64-enconded image, I debugged the code and realized that the error comes from this line :

"final Image imageFinger = subject.getFingers().get(0).getImage().toImage();"

Specifically in the toImage() method, it throws the next error : "java.lang.NoSuchMethodError: com.sun.jna.Native.getDirectByteBuffer(JJ)Ljava/nio/ByteBuffer;"

I dont know what could be happen, any idea?

Screenshot_3

Thank you!

AlexITC commented 4 years ago

It is very likely you are using a newer Java version where such class was removed, I suggest to try using JDK 8.

GustavoMucino commented 4 years ago

Yes I tought that it was the problem because I was using Java 10, but now I tried with the JDK 8 and the error is still there, any other suggestion? Thanks

AlexITC commented 4 years ago

Please try running the zip file on #1 , if that fixes the problem it would mean the project has a missing dependency that's required on runtime.

GustavoMucino commented 4 years ago

Perfect! It worked with the zip file! Thanks

AlexITC commented 4 years ago

Thanks for verifying, I will try to look on fixing the main instructions, sadly I need to renew my trial license to test.