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.

  • 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 to null.

  • binaryString (string()) – A string containing the binary image data of the image to be uploaded, typically in JPEG format.


For error responses, see Error Responses.

If successful, creates a new image for the document and uploads binary image data to the TrustID Cloud.