biosignin / bsi-core

Biometric Signature Interface
http://www.biosignin.org
GNU Affero General Public License v3.0
5 stars 7 forks source link

Method "fromBytes" of class "IsoBody" fails when channel "S" is the last included #2

Open oscarjfo opened 7 years ago

oscarjfo commented 7 years ago

There is an "IndexOutOfBound" exception when reading an ISO buffer where the channel "S" is the last included (this menas channels Tx,Ty,Az,Ei,R are not included). In detail, it is trying to read two bytes from the channel "S" in the LAST pixel, but there is only ONE byte left (the channel "S" has only one byte) Regards.

ghost commented 7 years ago

Hi, you're right. Can you send a unit test? We'll include it in next commits

oscarjfo commented 7 years ago

Hi, Attached one example.

Regards. Sign_ISO_19794_7_2007.txt

oscarjfo commented 7 years ago

Hi again, Do you have some parser for the 2014 ISO version? It is quite different to the 2007 version. Thanks in advance.

ceztko commented 3 years ago

Hi again, Do you have some parser for the 2014 ISO version? It is quite different to the 2007 version. Thanks in advance.

@oscarjfo by any chance do you also have an example of a 2014 full format (binary) sampling? So far I found only one example for the compact XML format at the following address, together with a xsd schema: https://standards.iso.org/iso-iec/19794/-7/ed-2/amd/1/