Wednesday, October 17, 2007

Java > write byte[] to file.*

public static void main(String[] args) throws Exception {
File file = new File("c:\\hoya.gif");

BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file));

byte[] content = null; //
bos.write(content);

bos.close();

}

No comments: