View Single Post
  #2 (permalink)  
Old 05-20-2007, 09:35 PM
levent levent is offline
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Yes, Java has excellent built-in support for networking.

You can use the following code to download the image:

Code:
try { // Create a URL for the image's location URL url = new URL("http://your-host.com/your-image.gif"); // Get the image java.awt.Image image = java.awt.Toolkit.getDefaultToolkit().getDefaultToolkit().createImage(url); } catch (MalformedURLException e) { } catch (IOException e) { }
Reply With Quote