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