We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to append base64 string into imageeditor

 Uncaught TypeError: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData'.

    at e.open (imged.ej2.min.js:9:1298897)

    at ISpaceManager.

    at Object.success (PortalB.

    at l (PortalCommon.

    at Object.fireWith [as resolveWith] (PortalCommon.

    at p (PortalCommon.

    at XMLHttpRequest.<anonymous> (PortalCommon.

when i try to append base64 string  getting this kind of error

1 Reply

YA YuvanShankar Arunagiri Syncfusion Team May 2, 2023 12:06 PM UTC

Hi Sanjeevi,

Using the open method of Image Editor component, we can load the base64 string to image editor component shown as below.

UG link: https://ej2.syncfusion.com/javascript/documentation/image-editor/open-save/

document.getElementById('btn2').onclick = function() {



Sample link: https://stackblitz.com/edit/7o9kt1?file=index.js

Get back to us if you need any further assistance on this.


YuvanShankar A

Live Chat Icon For mobile
Up arrow icon