public void init() {
		// Get the file location where it would be stored.
		tempDir = new File(getServletContext().getRealPath("/") + "/tmp/");
		saveDir = new File(getServletContext().getRealPath("/") + "/data/");
		// make dir if they are not exsit
		if (!tempDir.isDirectory())
			tempDir.mkdir();
		if (!saveDir.isDirectory())
			saveDir.mkdir();
	}