public static void saveURL(String urlString, File outFile)
	{
		fixDirs(outFile);
	    BufferedInputStream in = null;
	    FileOutputStream fout = null;
	    try
	    {
	            in = new BufferedInputStream(new URL(urlString).openStream());
	            fout = new FileOutputStream(outFile);
	
	            byte data[] = new byte[1024*1024];
	            int count;
	            while ((count = in.read(data, 0, 1024*1024)) != -1)
	            {
	                    fout.write(data, 0, count);
	            }
	    } catch (Exception e) {
			e.printStackTrace();
		}
	    finally
	    {
	            if (in != null)
					try {
						in.close();
					} catch (IOException e) {
						e.printStackTrace();
					}
	            if (fout != null)
					try {
						fout.close();
					} catch (IOException e) {
						e.printStackTrace();
					}
	    }
	}