-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
Erreur lors de la création du template pour probeImage.
java.lang.IllegalArgumentException: Unsupported image format [ImageIO = 'java.lang.UnsupportedOperationException: Image decoder is not available.', WSQ = 'java.lang.IllegalArgumentException: This is not a WSQ image.', Android = 'java.lang.NoClassDefFoundError: Failed resolution of: Lcom/machinezoo/noexception/Exceptions; -> java.lang.ClassNotFoundException: Didn't find class "com.machinezoo.noexception.Exceptions" on path: DexPathList[[zip file "/data/app/~~Ar2qCV_DK-z6YbvZ9j2OCA==/com.futronictech-ysDXwwqC4YxxZht6daeceQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~Ar2qCV_DK-z6YbvZ9j2OCA==/com.futronictech-ysDXwwqC4YxxZht6daeceQ==/lib/arm64, /data/app/~~Ar2qCV_DK-z6YbvZ9j2OCA==/com.futronictech-ysDXwwqC4YxxZht6daeceQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]'].
code :
byte[] pngBytes = convertToPNG(probeImage);
FingerprintTemplate probeTemplate = null;
try {
FingerprintImage fingerprintImage = new FingerprintImage(pngBytes);
probeTemplate = new FingerprintTemplate(fingerprintImage);
} catch (Exception e) {
return false;
}
method:
public static byte[] convertToPNG(byte[] rawBytes) throws IOException {
Bitmap bitmap = BitmapFactory.decodeByteArray(rawBytes, 0, rawBytes.length);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream);
return outputStream.toByteArray();
}
please help me @robertvazan
Metadata
Metadata
Assignees
Labels
No labels