• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

extract webpage icon

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
fidel83
Asked:
fidel83
  • 6
  • 2
1 Solution
 
DavidBirch2dotComCommented:
thats the favicon.ico link

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

David
0
 
DavidBirch2dotComCommented:
www.experts-exchange.com/favicon.ico
www.google.com/favicon.ico

ect

it should then be possible to download that file

David
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
DavidBirch2dotComCommented:
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
 
fidel83Author Commented:
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
 
DavidBirch2dotComCommented:
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
 
fidel83Author Commented:
thanks David :-)
0
 
DavidBirch2dotComCommented:
glad I could help

David
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now