I am having a few minor issues with the use of the GTK Embed widget.
I have the content for an HTML page in memory (including PNG images)
and I wish to throw them at the embedded widget to have the page
displayed.

I've tried using something similar to the following.

gtk_moz_embed_open_stream(moz, "http://server/file.htm";, "text/html");
gtk_moz_embed_append_data(moz, "<html><BODY><IMG
SRC="image.png"</BODY></html>", 13);
gtk_moz_embed_close_stream(moz);

This works fine for the actual HTML, but how do I get it to use the
png files?

I've tried calling the following after the above

gtk_moz_embed_open_stream(moz, "http://server/image.png";,
"image/png");
gtk_moz_embed_append_data(moz, image.data(), image.size());
gtk_moz_embed_close_stream(moz);
     * where image is a class that contains the data

and all I get is an error telling me that the embedded widget cannot
render the image.

If I write the image to a file, then point the widget at it, it works
fine.

Any help or suggestions would really be appreciated.

Thanks,

Andrew

Reply via email to