title: How to read bytes from a file, whereas the result byte[] is exactly as long
body: <p>I want the result <code>byte[]</code> to be exactly as long as the file content. How to achieve that.</p>
  
  <p>I am thinking of <code>ArrayList&lt;Byte&gt;</code>, but it doe not seem to be efficient.</p>