Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void writeAll(String fileName, byte[] data) throws IOException { OutputStream stream = new FileOutputStream(fileName); stream.write(data); stream.close(); } }