createPartialDocument

public final Resource<Document> createPartialDocument(ByteArray document, String contentType, String filename, DocumentManager.DocumentType documentType, DocumentMetadata documentMetadata)

Uploads raw data and creates a new Gini partial document.

Return

Resource with the Document instance of the freshly created document or information about the error

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