try {
// Create a URL for the image's location
URL url = new URL("http://hostname:80/image.gif");
// Get the image
java.awt.Image image = java.awt.Toolkit.getDefaultToolkit().getDefaultToolkit().createImage(url);
} catch (MalformedURLException e) {
} catch (IOException e) {
}