hi I am fetching the image from the web page using Jtidy in java. This is the my code:
URL url = new URL("http://www.yahoo.com");
HttpURLConnection conn=(HttpURLConnection) url.openConnection();
InputStream in=in = conn.getInputStream();
Document doc=new Tidy().parseDOM(in, null);
NodeList img = doc.getElementsByTagName("img");
list.add(img.item(0).getAttributes().getNamedItem("src").getNodeValue());
It is working properply, but I am getting some large images. I want to set height and width 16*16.
Please help me: how to set the size while fetching the image.