Hello, i need to display in a PictureWell the favicon of a web page, how can i do that? Thanks in advance
Download the source HTML with a HTTPSocket and scan the document for a favicon meta tag, or assume favicon.ico exists like some browsers do and download the favicon with a HTTPSocket. I’m not sure if ico is a supported image format or not, I can’t find anything in the documentation that says it is. However, once you’ve downloaded a supported image you can display it in the ImageWell.
Its a bit advanced for me…, how can i download de favicon?
Apparently you need a simple solution. Instead of an ImageWell, put an HTMLViewer on your window and use this :
HTMLViewer1.LoadURL("http://Micr-Fonts.com/favicon.ico")
Usually the Favicon is in the root of the server, as I did it here.