code: public static byte[] readFileToBytes( String filePath ) throws IOException {
          Path path = Paths.get(filePath);
          byte[] bytes = Files.readAllBytes(path);
          return bytes;
      }
docs: Read a file into a byte array.
  
  @param filePath the path to the file.
  
  @return the array of bytes.
  
  @throws IOException