var path='/c/test/';
var f= File(path+"1.png" );
f.encoding='BINARY';
f.open('e');

var binary;
binary =f.read().toSource();
var myFile=new File ("/c/test/1.txt");
    myFile.open("w");
    myFile.encoding = "UTF-8";
    myFile.write(binary);
    myFile.close();

$.writeln(binary);

f.close();

Leave a Reply

Your email address will not be published.