Here you can find the source of writeBytes(File file, byte[] bytes)
public static void writeBytes(File file, byte[] bytes) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void writeBytes(File file, byte[] bytes) throws IOException { BufferedOutputStream bos = new BufferedOutputStream( new FileOutputStream(file)); bos.write(bytes);//from w w w. j ava 2s. com bos.flush(); bos.close(); } }