I\'m converting a byte array into int by doing this:
int
ByteArrayInputStream bais = new ByteArrayInputStream (data); DataInputStream dis = new Data
Each cell in the array is treated as unsigned int:
private int unsignedIntFromByteArray(byte[] bytes) { int res = 0; if (bytes == null) return res; for (int i = 0; i < bytes.length; i++) { res = (res *10) + ((bytes[i] & 0xff)); } return res; }