Api.uploadImageFromString
- uploadImageFromString(containerId, documentId, imageType, filename, binaryString)
Creates a new image for a document and uploads binary image data, provided as a string, to the TrustID Cloud.
This method executes asynchronously and returns a promise.
- Arguments:
containerId (
guid) – Unique identifier of the document container that contains the document.documentId (
guid) – Unique document identifier of the document.imageType (
int) – The type of image to upload. See Image Types for information on image types.filename (
string) – Optional: The original name of the uploaded file. If no filename is known, set it tonull.binaryString (
string) – A string containing the binary image data of the image to be uploaded, typically inJPEGformat.
- Returns:
For error responses, see Error Responses.
If successful, creates a new image for the document and uploads binary image data to the TrustID Cloud.
See also