createPartialDocument

Task<DocumentcreatePartialDocument(@NonNull() Array<byte> document, @NonNull() String contentType, @Nullable() String filename, @Nullable() DocumentTaskManager.DocumentType documentType)

Uploads raw data and creates a new Gini partial document.

Return

A Task which will resolve to 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

Task<DocumentcreatePartialDocument(@NonNull() Array<byte> document, @NonNull() String contentType, @Nullable() String filename, @Nullable() DocumentTaskManager.DocumentType documentType, @NonNull() DocumentMetadata documentMetadata)

Uploads raw data and creates a new Gini partial document.

Return

A Task which will resolve to 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

documentMetadata

Additional information related to the document (e.g. the branch id to which the client app belongs)