Java FileOutputStream Write Byte Array writeBytes(String filename, byte[] bytes)

Here you can find the source of writeBytes(String filename, byte[] bytes)

Description

write Bytes

License

Open Source License

Declaration

public static void writeBytes(String filename, byte[] bytes) throws IOException 

Method Source Code

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

import java.io.IOException;

import java.io.FileOutputStream;

import java.io.FileOutputStream;

public class Main {
    public static void writeBytes(String filename, byte[] bytes) throws IOException {
        FileOutputStream output = new FileOutputStream(filename);
        output.write(bytes);//  ww  w.j av  a 2s .com
        output.close();
    }
}

Related

  1. writeBytes(File outputFile, byte[] bytes)
  2. writeBytes(final File file, final byte[] bytes)
  3. writeBytes(final File file, final byte[] bytes)
  4. writeBytes(int[] data, String filename)
  5. writeBytes(int[] data, String filename)
  6. writeBytes(String filename, byte[] data, int len)
  7. writeBytes(String filePath, boolean append, byte[] content)
  8. writeBytesInFile(File f, String data)
  9. writeBytesSafely(File aFile, byte theBytes[])