I'm foundonlyone safewayto use binary data in strings with ESTK:
Do not usea directassignment binary data to any variable in the body ofthe script, but you can get its as function result or put it as a function argument directly:
var s= "\x41\x42\x00\x44\x45"; // cause problems
but
var s = function() { return "\x41\x42\x00\x44\x45....." }; // notcause problems!!!
and then use s() anywhere;
or
var s = ScriptUI.newImage ("\x41\x42\x00\x44\x45....."); // for embeddingimage...
P.S.
sorryfor my english, I use google translate something where