code: public static byte[] readContent(File file) {
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          try {
              copy(new BufferedInputStream(new FileInputStream(file)), baos);
          } catch (FileNotFoundException e) {
              throw E.ioException(e);
          }
          return baos.toByteArray();
      }
docs: Read binary content of a file (warning does not use on large file !)
  
  @param file
  The file te read
  @return The binary data