Original Post
Hello, In my current project I am reading data from a bitmap via: DataInputStream dataInput = new DataInputStream(new FileInputStream(fileName)); However, I come to notice that some values are being read\interpreted as signed values and I am getting negative numbers where I shouldn't be. For instance, anytime I have a width or height of 128, the number is read as -128 from the bitmap. However, anytime there is another size(I have tested 64 and 256) it is read correctly as a positive number. I know that sounds wierd but that is what is happening and because Java has no specific signed or unsigned data types there is no way to tell Java explicitly how to interpret numbers so as there is no confusion. Anyhow, thank you in advance for your help with this extrememly frustrating problem.