code: public static void saveTo(String path, byte[] content) {
          InputStream is = null;
          try {
              is = new ByteArrayInputStream(content);
              saveTo(path, is);
          } finally {
              closeQuietly(is);
          }
      }
docs: Saves content of byte array to file.
  
  @param path path to file - can be absolute or relative to current.
  @param content bytes to save.