Java BufferedImage from URL httpGetImage(String url)

Here you can find the source of httpGetImage(String url)

Description

http Get Image

License

LGPL

Declaration

public static BufferedImage httpGetImage(String url) throws IOException 

Method Source Code


//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
}

Related

  1. downloadImage(String url)
  2. downloadImage(URL url)
  3. getFileAndDownload(String urlString, String folder)
  4. Img2ByteByUrl(String strUrl)
  5. urlToImage(String urlstring)
  6. urlToImage(URL imageUrl)
  7. urlToJpegThumbnail(String url, String filename, double maxWidth, double maxHeight)