Getting Favicon

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

Getting Favicon

Postby arukshk13 » Wed Mar 26, 2014 8:13 am

How can I get the favicon of web page?
arukshk13
Newbie
 
Posts: 4
Joined: Mon Mar 24, 2014 2:06 am

Re: Getting Favicon

Postby mistymorning » Sun May 04, 2014 8:51 am

I had to do this to implement bookmarks and I took the browser Url and pulled out the host name

Code: Select all
string Url = "http://" + Host + "/favicon.ico";
DownloadFile(Url, FileName);//c# function using System.Net.WebResponse


I tried to use Cef3 classes that would return a stream from a request but could not find one that would do the job
so i knocked up the DownloadFile function that also servers to display icons for any history pages.
Building a web-browser that does not call home
mistymorning
Techie
 
Posts: 15
Joined: Sun May 04, 2014 8:08 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 14 guests