How to get favicon.ico from a website using Java?
So I'm making an application to store shortcuts to all the user's favorite applications, acting kind of like a hub. I can have support for actual files and I have a .lnk parser for shortcuts. I thought it would be pretty good for the application to support Internet shortcuts, too. This is what I'm doing: Suppose I'm trying to get Google's icon ( http://www.google.com/favicon.ico ). I start out by getting rid of the extra pages (e.g. www.google.com/anotherpage would become www.google.com . Then, I use ImageIO.read(java.net.URL) to get the Image. The problem is that ImageIO never returns an