convert html to image in byte array java
How can i easily convert html to image and then to byte array without create it thanks If you do not have any complex html you can render it using a normal JLabel . The code below will produce this image: <html> <h1>:)</h1> Hello World!<br> <img src="http://img0.gmodules.com/ig/images/igoogle_logo_sm.png"> </html> public static void main(String... args) throws IOException { String html = "<html>" + "<h1>:)</h1>" + "Hello World!<br>" + "<img src=\"http://img0.gmodules.com/ig/images/igoogle_logo_sm.png\">" + "</html>"; JLabel label = new JLabel(html); label.setSize(200, 120); BufferedImage image