public void sendFile(final String filePath) {
		prepareConnection();

		Thread queryThread = new Thread() {
			public void run() {
				try {
					webResource = client.resource(address + "adminPanel/upload/");
					webResource.addFilter(new ConnectionListenerFilter(
							new SendPackageListenerFactory()));
					ClientResponse response = webResource.type(
							MediaType.MULTIPART_FORM_DATA_TYPE).post(
							ClientResponse.class, createInstance(filePath));
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		};
		queryThread.start();
	}