Jürgen Herz wrote: > I don't know how to do the processing in the onDataAvailable handler, > so I've to buffer the data. How to?
Easiest way is to create an nsIPipe, use writeFrom to write into its nsIOutputStream, and at the end read its nsIInputStream. > Currently using a simple string > inside the stream listener object. It seems quite ugly to me to sum up > megabytes of data in memory which I maybe don't need, but that's > another story. How are you handling this issue with open()? Either it buffers up all the data, or you're calling read() multiple times, right? -Boris _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
