Here you can find the source of writeBytes(File file, byte[] arr)
public static void writeBytes(File file, byte[] arr) throws IOException
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static void writeBytes(File file, byte[] arr) throws IOException { try (FileOutputStream out = new FileOutputStream(file)) { out.write(arr);/* ww w.j a v a 2 s .com*/ } } }