public Observable<ServiceResponse<ImageCreateSummary>> createImagesFromDataWithServiceResponseAsync(UUID projectId, byte[] imageData, List<String> tagIds) {
        if (projectId == null) {
            throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
        }
        if (imageData == null) {
            throw new IllegalArgumentException("Parameter imageData is required and cannot be null.");
        }
        if (this.client.apiKey() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null.");
        }
        Validator.validate(tagIds);
        String tagIdsConverted = this.client.serializerAdapter().serializeList(tagIds, CollectionFormat.CSV);
        RequestBody imageDataConverted = RequestBody.create(MediaType.parse("multipart/form-data"), imageData);
        return service.createImagesFromData(projectId, tagIdsConverted, imageDataConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ImageCreateSummary>>>() {
                @Override
                public Observable<ServiceResponse<ImageCreateSummary>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<ImageCreateSummary> clientResponse = createImagesFromDataDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < ImageCreateSummary > > createImagesFromDataWithServiceResponseAsync ( UUID projectId , byte [ ] imageData , List < String > tagIds ) { if ( projectId == null ) { throw new IllegalArgumentException ( "Parameter projectId is required and cannot be null." ) ; } if ( imageData == null ) { throw new IllegalArgumentException ( "Parameter imageData is required and cannot be null." ) ; } if ( this . client . apiKey ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiKey() is required and cannot be null." ) ; } Validator . validate ( tagIds ) ; String tagIdsConverted = this . client . serializerAdapter ( ) . serializeList ( tagIds , CollectionFormat . CSV ) ; RequestBody imageDataConverted = RequestBody . create ( MediaType . parse ( "multipart/form-data" ) , imageData ) ; return service . createImagesFromData ( projectId , tagIdsConverted , imageDataConverted , this . client . apiKey ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < ImageCreateSummary > > > ( ) { @ Override public Observable < ServiceResponse < ImageCreateSummary > > call ( Response < ResponseBody > response ) { try { ServiceResponse < ImageCreateSummary > clientResponse = createImagesFromDataDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Add the provided images to the set of training images.
This API accepts body content as multipart/form-data and application/octet-stream. When using multipart
multiple image files can be sent at once, with a maximum of 64 files.

@param projectId The project id
@param imageData the InputStream value
@param tagIds The tags ids with which to tag each image. Limited to 20
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the ImageCreateSummary object