Hi Boris,
I met similar problem. But instead of using doeShell->LoadStream, I updated
dom content of a page. Images are not displayed :( . Can give some suggestions?
Below is may code:
nsCOMPtr<nsIDOMDocument> domDoc;
aWebNav->GetDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDOMHTMLDocument> domHtmlDoc(do_QueryInterface(domDoc));
domHtmlDoc->Open();
nsEmbedString unicodeContent;
ConvertUtf8ToUtf16(nsEmbedCString(htmlContent), unicodeContent);
domHtmlDoc->Write(unicodeContent);
domHtmlDoc->Close();
BTW, I can make sure that the url of the image is right, since right click the
image icon then click view image, it will show normally.
Thanks!
Michael
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding