public static void writePlainFile(String filePath,byte[] content) throws IOException {
  FileOutputStream fileOuputStream=new FileOutputStream(filePath);
  fileOuputStream.write(content);
  fileOuputStream.close();
}

public static void writePlainFile ( String filePath , byte [ ] content ) throws IOException { FileOutputStream fileOuputStream = new FileOutputStream ( filePath ) ; fileOuputStream . write ( content ) ; fileOuputStream . close ( ) ; }
write byte array into a regular file
