public static String uploadSimpleFile(String url, String path,
			Map<String, String> urlParam, Map<String, String> reqParam) 
					throws MalformedURLException, IOException {
		
		FileInputStream file = null;
		
	    file = new FileInputStream(path);
		
		StringBuilder fullUrl = new StringBuilder(url + "?");
		
		for (String s : urlParam.keySet()) {
			fullUrl.append(s + "=" + urlParam.get(s) + "&");
		}
		
		URLConnection con = new URL(fullUrl.deleteCharAt(fullUrl.length()-1)
												  .toString()).openConnection();
		
		for (String s : reqParam.keySet()) {
			con.setRequestProperty(s,reqParam.get(s));
		}
	
		StringBuilder data = new StringBuilder();

		con.setDoOutput(true);
			
		DataOutputStream dstream = new DataOutputStream(con.getOutputStream());
		
		int currentByte;
		
		while ((currentByte = file.read()) != -1) {
			dstream.write(currentByte);
		}
		
		file.close();
		
		Scanner sc = new Scanner(con.getInputStream());
		data = new StringBuilder();
		while (sc.hasNext()) {
			data.append(sc.nextLine());
		}
		sc.close();
		
		return data.toString();
	}