File.read() fails with binary file
this is annoying me as I thought this would be trivial (and according to the docs, completely possible).
I am opening a tiff file, and I am trying to read all the data. I set encoding to binary after opening.heres my simple code:
var file = File.openDialog('select file');
file.open("r");
file.encoding = "binary";
alert(file.read());
I am using this file:
https://area51.d4creative.com/cgi-bin/fastLink.cgi?linkID=922&fileID=5162&keyCode=9tlpQ3dS
my alert box says: MM if I open that file in a text editor, there is more data after MM. What is the problem? Can extendscript really not properly read binary data despite the manuals claim that it can?
Mike Cardeiro