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.