public static void writeFile ( byte [ ] content , File file ) throws IOException { OutputStream outputStream = null ; try { //create output stream to file outputStream = new FileOutputStream ( file ) ; //write to file outputStream . write ( content ) ; } finally { //close writer IOHelper . closeResource ( outputStream ) ; } }
Writes the content to the file .