Solved

extract webpage icon

Posted on 2004-10-27
401 Views
Last Modified: 2010-04-05
Hi,
Is there a way to extract a webpage's icon?
(The one that appears on the left of some urls - for example google.com)

Cheers,
Fidel.
0
Question by:fidel83
    8 Comments
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    thats the favicon.ico link

    normaly found at www.domain.com/favicon.ico

    David
    0
     
    LVL 7

    Accepted Solution

    by:
    www.experts-exchange.com/favicon.ico
    www.google.com/favicon.ico

    ect

    it should then be possible to download that file

    David
    0
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    0
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    Accepted Answer from dwwang
    Date: 12/28/1998 10:18AM WET
    Grade: A
     Accepted Answer  


    Download this component, http://www.torry.ru/vcl/internet/webfileI.zip
    Besides downloading a file from a URL,  It contains much more functions.

    It is with full source, so you can make use of the part that implements the downloading.


    -----------

    that should do it - just get the domain and add /favicon.ico to it

    David


    0
     
    LVL 1

    Author Comment

    by:fidel83
    Hi David, thanks for the good answer, I will accept soon

    On last related question - any quick way to extract the domain name from the url?
    0
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    thanks :)

    off the top of my head ... you could check for the Http:// bit if its there delete it then delete everything after the first /

    David
    0
     
    LVL 1

    Author Comment

    by:fidel83
    thanks David :-)
    0
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    glad I could help

    David
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.
    This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now