Is there any way to embed images in my exe (as a resource?) And use it in the generated HTML?
Here are the requirements:
a. I want to show dynamic HTML content (for example, using the webBrowser control, VS 2008, VB.Net, winForm desktop)
Q. I want to generate HTML on the fly using XML and XSL (file1.xml or file2.xml converted by my.xsl)
C. HTML may contain IMG tags (file1.gif and or file2.gif according to xml + xsl conversion)
and here is tricky:
E. All of these files (file1.xml, file2.xml, my.xsl, file1.gif, file2.gif) must be embedded in a single exe file.
I think XML and XSL can be embedded resources, and I can read them as a stream, but in what ways can I link to an image inside HTML?
<IMG src="???" />
- I do not want to use the absolute path and external files.
- If image files are resources, can a relative path be used? Regarding what? (I can use the BASE tag, and then what?)
- Is it possible to use a stream, as in email messages? If so, where can I find the format I need to use?
http://www.websiteoptimization.com/speed/tweak/inline-images/ are browser dependent.
- What is the browser used by the webBrowser control?
- IE?
which version?
Does it matter if I use GIF or JPG or BMP (or any other image format) for images?
Does it matter if I use the mshtml library and not the regular webBrowser control? (I am currently using http://www.itwriting.com/htmleditor/index.php )
Does it matter if I upgrade to VS 2010?
Thanks,
Atar
Atara source share