Christian Biesinger wrote: > 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.
Right, I overlooked the [noscript] in front of it (it was rather later already and I was in a hurry, but found my error today). > 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. Yes, nsIScriptableInputStream works for me because I think that null bytes are illegal for RDF, RSS and XML files, no? > Or you can use nsIConverterInputStream, see > http://developer.mozilla.org/en/docs/Reading_textual_data for that. That's a new one for me. I will have a look at it later today. Thank you for your help, Michael _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
