Skip to content

Erreur lors de la création du template pour probeImage #69

@kdiawara96

Description

@kdiawara96

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions