I try BlobsInKettle code, but generate file is 0K.I don't know why.Help me!
Thanks.
BlobsInKettle code :

var File = java.io.File;
var FileOutputStream = java.io.FileOutputStream;
var BufferedOutputStream = java.io.BufferedOutputStream;
var filename = file_name;
var outBytes = file;


try{
var f = new File(filename);


if (!f.exists()){
f.createNewFile();
}


var fos = new FileOutputStream(f);
var bos = new BufferedOutputStream(fos);
bos.write(outBytes);
bos.flush();
bos.close();