Creates and inserts a new image inline, which means that it is treated in the text like a single character. The image is inserted at the specified text input position.

<void> ImageCollection.addInline(<string> imageData, <number> textPosition, [<RequestImageCallback> callback], [<ErrorCallback> errorCallback])


Parameter Description
imageData The base64 encoded image data.
textPosition Specifies the text position at which the barcode is to be inserted. If -1 is specified, the barcode is inserted at the current input position.
callback Optional. The newly created image object is returned via this callback function.
errorCallback Optional. Is called when the operation failed with an error.

Further Reading

Learn more about the Javascript: ImageCollection.addInline Method in the Text Control Blog: