create Partial Document
final Document createPartialDocument(ByteArray document, String contentType, String filename, DocumentTaskManager.DocumentType documentType, DocumentMetadata documentMetadata)
Content copied to clipboard
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
content Type
The media type of the uploaded data
filename
Optional the filename of the given document
document Type
Optional a document type hint. See the documentation for the document type hints for possible values