Here you can find the source of fileWrite(String filename, byte[] ba)
public static void fileWrite(String filename, byte[] ba) throws FileNotFoundException, IOException
//package com.java2s; //License from project: Open Source License import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class Main { public static void fileWrite(String filename, byte[] ba) throws FileNotFoundException, IOException { FileOutputStream fos = new FileOutputStream(filename); fos.write(ba);/*from ww w. j a v a 2 s . c om*/ fos.close(); } }