Boris Zbarsky wrote:
Craig Kadziolka wrote:
inputStream->SetData("<html><img src=\"logo.gif\">My test generated page</html>", -1);

That's a relative URI.

// finally, load the stream we made
rv = docShell->LoadStream(inputStream,
                             NULL,

And you pass NULL for the base URI.

So of course nothing loads.  You want to pass the right base URI here.

Great, thanks! I thought that passing NULL here would make the base URI relative to the binary, so I thought that it would look for logo.gif in the same directory as the binary?

Do you know what I should pass in here as the base URI, if I just want it to look in the same place as the binary?

Thanks in advance,

Craig.

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

Reply via email to