Fabrice Desré wrote:
> So far it's working but it will probably fail if there are several 
> successive calls to onDataAvailable(), when loading a big file for 
> instance. What could be a solution in such a situation ?

Yeah, that would fail.  You could put the data into an nsIPipe's output stream 
end instead (using writeFrom, perhaps?) and then in OnStopRequest parse the 
pipe's input stream end?

This does involve buffering up all the data in memory, but that's the best you 
can do here from JS, I think...

-Boris


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

Reply via email to