Java tutorial
//package com.java2s; import java.io.*; public class Main { public static void createFile(byte[] byteArray) { try { File file = new File("C:/Programming/compressedFile"); if (!file.exists()) { file.createNewFile(); } FileOutputStream fos = new FileOutputStream("C://Programming/compressedFile"); fos.write(byteArray, 0, byteArray.length); fos.close(); System.out.println("Done"); } catch (IOException e) { e.printStackTrace(); } } }