Here you can find the source of writeFile(final String fileNamePath, final byte[] daten)
public static void writeFile(final String fileNamePath, final byte[] daten) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.FileOutputStream; import java.io.IOException; public class Main { public static void writeFile(final String fileNamePath, final byte[] daten) throws IOException { FileOutputStream output = null; try {/*from w w w . j a va2 s.c o m*/ output = new FileOutputStream(fileNamePath); output.write(daten); } finally { if (output != null) { output.close(); } } } }