Java API for the CloudConvert Service

CloudConvert Java API

Jersey-client based implementation of the REST API.

Example Usage

// Create service object
CloudConvertService service = new CloudConvertService("<api key>");

// Create conversion process
ConvertProcess process = service.startProcess("jpg", "png");

// Perform conversion
process.startConversion(new File("test.jpg"));

// Wait for result
ProcessStatus status;
waitLoop: while (true) {
    status = process.getStatus();

    switch (status.step) {
    case FINISHED: break waitLoop;
    case ERROR: throw new RuntimeException(status.message);

    // Be gentle

// Download result, new File("output.png"));

// Clean up