Here you can find the source of writeFile(String fileOutput, byte[] data)
public static void writeFile(String fileOutput, byte[] data) throws IOException
//package com.java2s; //License from project: LGPL import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; public class Main { public static void writeFile(String fileOutput, byte[] data) throws IOException { OutputStream outputStream = new FileOutputStream(fileOutput); try {/*w w w.j a v a2 s. com*/ outputStream.write(data); } finally { outputStream.close(); } } }