Java Write Byte Array to File writeFile(String filename, byte data[])

Here you can find the source of writeFile(String filename, byte data[])

Description

write File

License

Open Source License

Declaration

static public void writeFile(String filename, byte data[])
            throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.FileOutputStream;
import java.io.IOException;

public class Main {
    static public void writeFile(String filename, byte data[])
            throws IOException {
        FileOutputStream fout = new FileOutputStream(filename);
        fout.write(data);/*from w w  w .j a  v  a2s .  co m*/
        fout.close();
    }
}

Related

  1. writeFile(File file, byte[] data)
  2. writeFile(File file, byte[] data)
  3. writeFile(File file, byte[] data)
  4. writeFile(File file, byte[]... data)
  5. writeFile(final File file, byte[] data)
  6. writeFile(String filename, byte[] bs)
  7. writeFile(String fileName, byte[] bytes)
  8. writeFile(String fileName, byte[] bytes)
  9. writeFile(String fileName, byte[] bytes)