Here you can find the source of save(File file, byte[] content)
public static void save(File file, byte[] content) throws IOException
//package com.java2s; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; public class Main { public static void save(File file, byte[] content) throws IOException { FileOutputStream out = new FileOutputStream(file); try {/* ww w . j av a2s . c o m*/ out.write(content); } finally { out.close(); } } public static void save(String fileName, byte[] content) throws IOException { FileOutputStream out = new FileOutputStream(fileName); try { out.write(content); } finally { out.close(); } } }