Michael Vincent van Rantwijk, MultiZilla wrote: > I have looked at nsIInputStream.idl and there I found read() and > readSegments() but I don't know if this is what I should use, or how I > should use it.
You can't use them from JS. You can use nsIScriptableInputStream, if you know all your data is ASCII and doesn't contain null bytes. You can use nsIBinaryInputStream, but that's probably inconvenient. Or you can use nsIConverterInputStream, see http://developer.mozilla.org/en/docs/Reading_textual_data for that. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
