I need to readin a binary file and then convert it to a byte[] array. I am able to done this with code below, but the problem is the value of the byte array for each element is decimals from signed 2's complement instead of decimals. Is anyone know how to make the byte[] converted to be Decimals instead of Decimal from signed 2's complement?
File inFile = new File(filePath);
fileByteData = new byte[(int) inFile.length()];
DataInputStream dis = new DataInputStream(new FileInputStream(inFile));
dis.readFully(fileByteData);
dis.close();