Closed MohitMaliFtechiz closed 1 year ago
@mgautierfr Before releasing the new java-libkiwix
by any chance we could fix this? As of now, As a hack, I am creating the archive object from filePath given by the book and I am taking the illustration from that object.
It would be better to fix this before releasing the new java-libkiwix
.
@mgautierfr It has the Illustration in book
Get illustration from book: Illustration = org.kiwix.libkiwix.Illustration@d75d52
This is the proper error when we try to get the data from Illustration
.
java_vm_ext.cc:579] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0x89
java_vm_ext.cc:579] string: '?PNG
java_vm_ext.cc:579]
java_vm_ext.cc:579] '
java_vm_ext.cc:579] input: '<0x89> 0x50 0x4e 0x47 0x0d 0x0a 0x1a 0x0a'
java_vm_ext.cc:579] in call to NewStringUTF
java_vm_ext.cc:579] from java.lang.String org.kiwix.libkiwix.Illustration.getData()
We have an functionality to writing/reading library in a file. https://github.com/kiwix/java-libkiwix/blob/f9dc43e17700568143ef24edd7ca30fc8ea711be/lib/src/main/java/org/kiwix/libkiwix/Library.java#L44
https://github.com/kiwix/java-libkiwix/blob/f9dc43e17700568143ef24edd7ca30fc8ea711be/lib/src/main/java/org/kiwix/libkiwix/Manager.java#L32
The library has the book objects and it has an illustration for the book, but when I try to get the
Illustration.getData()
from the book object it is giving an error.Library content is:
More reference https://github.com/kiwix/kiwix-android/pull/3474#issuecomment-1792429443