I have a student work, but i have some problems. While im trying to open my png file, by this code:
File file = new File("png.png");
byte[] fileContent = Files.readAllBytes(file.toPath());
for (int i=0; i<fileContent.length; i++)
System.out.println(fileContent[i]);
I have noticed that my bytes, bigger than 128, are converted into minus values. For example first Value (in PNG structure) is 137, in my eclips view it's -119. What's wrong? am I doing something wrong, or i have to convert somehow that minus values into something different?
I want to do adding operations on this structure (but firstly i need to earn a knowledge about are that bits...)