Harobed wrote:
var o;
j.readBytes(o, 2000);

The signature of readBytes is: 80 void readBytes(in PRUint32 aLength, 81 [size_is(aLength), retval] out string aString);

I.e. you should pass the length as first argument:
var o;
j.readBytes(2000, o);
the data should then be accessible as o.value, if I recall correctly.

However, it looks like you won't be able to read non-ascii characters this way...

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

Reply via email to