private static String downloadImage(URL url) throws IOException
	{
		InputStream  inputStream  = new BufferedInputStream(url.openStream());
		OutputStream outputStream = new BufferedOutputStream(new FileOutputStream("temp.dat"));

		for (int i = 0; (i = inputStream.read()) != -1;) 
		{
			outputStream.write(i);
		}
		
		inputStream.close();
		outputStream.close();
		
		return "temp.dat";
	}