createPartialDocument

final Document createPartialDocument(ByteArray document, String contentType, String filename, DocumentTaskManager.DocumentType documentType, DocumentMetadata documentMetadata)

Uploads raw data and creates a new Gini partial document.

Return

the Document instance of the freshly created document.

Parameters

document

A byte array representing an image, a pdf or UTF-8 encoded text

contentType

The media type of the uploaded data

filename

Optional the filename of the given document

documentType

Optional a document type hint. See the documentation for the document type hints for possible values