Java tutorial
//package com.java2s; import java.io.FileOutputStream; public class Main { public static void bytesToFile(byte[] content, String filename) throws Exception { FileOutputStream out = new FileOutputStream(filename); out.write(content); out.close(); } }