Marek 'MMx' Ludha wrote:
sStream.available() tells the correct number of bytes available, but
sStream.read() stops reading on the first zero byte.

Yeah, you can't use nsIScriptableInputStream for binary data, unfortunately.

var byteArray = [];
sStream.readByteArray(sStream.available(), byteArray);

This needs to be:
  var byteArray = sStream.readByteArray(sStream.available());
then it should work.

-christian
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to