public static BufferedImage getImage ( InputStream input ) throws IOException { final BufferedImage buffer = ImageIO . read ( input ) ; if ( buffer == null ) { throw new IOException ( "Invalid image !" ) ; } return copyImage ( buffer ) ; }
Get an image from an input stream .