Here you can find the source of save(byte[] bytes, File path)
public static void save(byte[] bytes, File path) throws FileNotFoundException, IOException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class Main { public static void save(byte[] bytes, File path) throws FileNotFoundException, IOException { if (bytes != null) { FileOutputStream fos = new FileOutputStream(path); fos.write(bytes);/*from www.j a v a 2 s. c o m*/ fos.close(); } } }