Submit a job using bytes as inputs

modzyClient.submitJobEmbedded(String modelId, String versionId, List<EmbeddedData> embeddedSource)

Submits a job based on an input of a byte array. It is possible to configure the mime type on the EmbeddedData object.


modelIdjava.lang.StringModel identifier provided by Modzy."ed542963de"
versionIdjava.lang.StringThe model’s version number. It follows the semantic versioning format."1.0.1"
embeddedSourcesjava.util.List<com.modzy.sdk.dto.EmbeddedData>A list of inputs to processList<EmbeddedData> inputs = new ArrayList<>(); inputs.add( new EmbeddedData());


com.modzy.sdk.model.Job object with the job status obtained from the server


List<EmbeddedData> inputs = new ArrayList<>();
inputs.add( new EmbeddedData("plain/text", "") );
Job job = modzyClient.submitJobEmbedded("ed542963de", "1.0.1", inputs);

More specific customization options are provided by the method [modzyClient.getJobClient.submitJob]{doc:javamodzyclientsubmitjob}

JobInput<EmbeddedData> jobInput = new JobInputEmbedded();
Map<String,EmbeddedData> mapSource = new HashMap<>();
mapSource.put("input.txt", new EmbeddedData("text/plain", "Modzy is great!".getBytes(StandardCharsets.UTF_8)));
jobInput.addSource("my-input", mapSource);
Job job = modzyClient.submitJob("ed542963de", "1.0.1", jobInput, false);