sparqlGraphLibrary/src/main/java/com/ge/research/semtk/edc/client/ResultsClient.java
public SimpleResultSet execStoreBinaryFilePath(String jobID, String path, String filename) throws Exception{

		this.parametersJSON.clear();
		this.parametersJSON.put("jobId", jobID);
		this.parametersJSON.put("path", path);
		this.parametersJSON.put("filename", filename);
		
		this.conf.setServiceEndpoint("results/storeBinaryFilePath");
		this.conf.setMethod(RestClientConfig.Methods.POST);
		try {
			JSONObject res = (JSONObject) this.execute(false);
			SimpleResultSet simpleRes = SimpleResultSet.fromJson(res);
			simpleRes.throwExceptionIfUnsuccessful();
			return simpleRes;
		} finally {
			this.fileParameter = null;
			this.cleanUp();
		}
	}
/**
	 * Store a file.  Note that it becomes subject to clean-up (removal by results service)
	 * @param file
	 * @return Successful SimpleResultSet containing fileId
	 * @throws Exception
	 */
Store a file.  Note that it becomes subject to clean-up (removal by results service)
@param file
@return Successful SimpleResultSet containing fileId
@throws Exception
Store a file . Note that it becomes subject to clean - up ( removal by results service ) @param file @return Successful SimpleResultSet containing fileId @throws Exception
public SimpleResultSet execStoreBinaryFilePath(String jobID, String path, String filename) throws Exception{
		this.parametersJSON.clear();
		this.parametersJSON.put("jobId", jobID);
		this.parametersJSON.put("path", path);
		this.parametersJSON.put("filename", filename);
		this.conf.setServiceEndpoint("results/storeBinaryFilePath");
		this.conf.setMethod(RestClientConfig.Methods.POST);
		try {
			JSONObject res = (JSONObject) this.execute(false);
			SimpleResultSet simpleRes = SimpleResultSet.fromJson(res);
			simpleRes.throwExceptionIfUnsuccessful();
			return simpleRes;
		} finally {
			this.fileParameter = null;
			this.cleanUp();
		}
	}
public SimpleResultSet execStoreBinaryFilePath ( String jobID , String path , String filename ) throws Exception { this . parametersJSON . clear ( ) ; this . parametersJSON . put ( "jobId" , jobID ) ; this . parametersJSON . put ( "path" , path ) ; this . parametersJSON . put ( "filename" , filename ) ; this . conf . setServiceEndpoint ( "results/storeBinaryFilePath" ) ; this . conf . setMethod ( RestClientConfig . Methods . POST ) ; try { JSONObject res = ( JSONObject ) this . execute ( false ) ; SimpleResultSet simpleRes = SimpleResultSet . fromJson ( res ) ; simpleRes . throwExceptionIfUnsuccessful ( ) ; return simpleRes ; } finally { this . fileParameter = null ; this . cleanUp ( ) ; } }
Store a file.
Store a file .