hi,

I would like read binary file.

To do that, I use the readBytes method of nsIBinaryInputStream :

var BinaryInputStream = new Components.Constructor("@mozilla.org/binaryinputstream;1", 
"nsIBinaryInputStream");
var j=new BinaryInputStream();
        
j.setInputStream(inputStream);
        
var o;
j.readBytes(o, 2000);
dump(o);

o is empty :(

How to use readBytes ?

Thanks
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to