User Ratings
Rate This Project
Login To Rate This Project
User Reviews
-
When using Binary mode, there is an error when parsing numeric field length is odd number. the error is here : public static BigInteger decodeToBigInteger(byte[] buf, int pos, int length) throws IndexOutOfBoundsException { char[] digits = new char[length]; int start = 0; for (int i = pos; i < pos + (length / 2) + (length % 2); i++) { => Should ignore the first digit because there is a padding with 0 to fill the hex value (20 digits instead of 19!) digits[start++] = (char)(((buf[i] & 0xf0) >> 4) + 48); digits[start++] = (char)((buf[i] & 0x0f) + 48); } return new BigInteger(new String(digits)); } Try this with field 2 length = 19. You should ignore the first zero when parsing odd binary value. Feel free to contact me if you need any help on this.
-
Excellent, very useful!
-
Great project, keep it up!
-
thanks man, great soft!