On Jan 28, 2006, at 10:58 AM, Brian Heibert wrote:

Hi,

  dim http as httpsocket
http.Get viewer.gofield.text+"/favicon.ico" , TemporaryFolder.Child("favicon.ico")

I tried using the above code to retrieve a favicon and display it in a canvas

it's not working and I think I am missing the code that puts it in the canvas

How can I do this?

What you are missing is the code to convert the favicon.ico file into a picture. Just so happens that I have that here:

    http://developer.dreystone.com/icoviewer.php

The project includes two encrypted classes which you need to drag to your project. Then you create a new IconSet by passing the data retrieved from the favicon.ico file; either string or the FolderItem.

    Dim i As New IconSet(TemporaryFolder.Child("favicon.ico"))
    Dim p As Picture = i.Favicon

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to