Here you can find the source of httpGetImage(String url)
public static BufferedImage httpGetImage(String url) throws IOException
//package com.java2s; //License from project: LGPL import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.*; import java.net.URL; public class Main { public static BufferedImage httpGetImage(String url) throws IOException { return ImageIO.read(new URL(url)); }//w w w . j a v a2 s . co m }