Simple writing and reading bytes
<p>Hey I cant figure out what is wrong here.</p>

<p>Write to file:</p>

<pre><code>byte[] dim = new byte[2];
dim[0] = (byte) deImgWidth; // Input 384
dim[1] = (byte) deImgHeight; // Input 216
out.write(dim);
</code></pre>

<p>Read from File</p>

<pre><code>byte[] file = new byte[(int) f.length()];
FileInputStream fs = new FileInputStream(f);
fs.read(file);
deImgWidth = ((file[0]) &amp; 0xFF); // output 128
deImgHeight = ((file[1]) &amp; 0xFF); // output 216
</code></pre>

<p>How come I can retrieve the same deImgHeight value but not the same deImgWidth value?</p>
