Hi, I'm developing a C++ XPCOM component using Gecko 1.8a6 SDK.
One of the requirements is to intercept the response coming to the browser and manipulate it. I have a custom StreamListener class listening to the response. In the OnDataAvailable() method, I am able to to do a Read(...) on the InputStream but I am running into problems constructing a new InputStream with the modified data. I tried using NS_NewByteArrayInputStream to create a new nsIInputStream, But I get a link error "error LNK2001: unresolved external symbol "unsigned int __cdecl NS_NewByteArrayInputStream(class nsIByteArrayInputStream * *,char*,unsigned long)" I would like to treat the data as byte array rather than a string. How can I get it to work ? Thanks, Maya _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
