private static HttpPost getFilePostMethod(Map<String, String> files, Map<String, String> data,
			String url) throws Exception {
		HttpPost httpost = new HttpPost(url);
//		
		MultipartEntityBuilder builder = MultipartEntityBuilder.create();
		if (data != null && data.size() > 0) {
			for (Map.Entry<String, String> entry : data.entrySet()) {
				builder.addPart(entry.getKey(),
						new StringBody(entry.getValue(),ContentType.TEXT_PLAIN));
			}
		}
		if (files != null && files.size() > 0) {
			for (Map.Entry<String, String> entry : files.entrySet()) {
				FileBody  bin = new FileBody (new File(entry.getValue()));
				builder.addPart(entry.getKey(), bin);
			}
		}
		httpost.setEntity(builder.build());
		
		return httpost;
	}