code: private static byte[] readBytes(final File aFile) throws IOException {
          final FileInputStream fileStream = new FileInputStream(aFile);
          final ByteBuffer buf = ByteBuffer.allocate((int) aFile.length());
          final int read = fileStream.getChannel().read(buf);
  
          if (read != aFile.length()) {
              fileStream.close();
              throw new IOException(LOGGER.getI18n(MessageCodes.UTIL_044, aFile));
          }
  
          fileStream.close();
          return buf.array();
      }
docs: Reads the contents of a file into a byte array.
  
  @param aFile The file from which to read
  @return The bytes read from the file
  @throws IOException If the supplied file could not be read in its entirety