Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
800
Display encoded image in a cell not working.
posted

I tried to display formatted text (including encoded images) in a column, The column style is set to FormattedText. But the image doesn't show. If I use external URL for the image, the image shows.

<img src=\"data:image/bmp;base64,Qk1CAwAAAAAAADYAAAAoAAAAEQAAAA8AAAABABgAAAAAAAwDAAAAAAAAAAAAAAAAAAAAAAAA////gAAA////////////////gAAA////////gAAA////gAAA////////////gAAA////AP///4AAAP///////////////4AAAP///4AAAP///////4AAAP///////4AAAIAAAP///wD///+AAACAAACAAAD///////+AAACAAACAAAD///////+AAAD///////+AAACAAAD///8A////gAAA////////gAAAwMDAgAAAwMDAwMDAgAAAwMDAgAAAwMDAgAAA////gAAA////AP///4AAAP///////4AAAP///4AAAP///////4AAAP///4AAAIAAAP///////4AAAP///wD///+AAAD///////+AAAD///+AAAD///////+AAAD///+AAACAAAD///////+AAAD///8A////gAAAgAAAgAAAwMDA////gAAAgAAAgAAA////////gAAAwMDA////////gAAA////AP///////////////8DAwP///8DAwMDAwMDAwICAgMDAwMDAwICAgP///////////////wD////////////////AwMD////////////////////////AwMCAgID///////////////8A////////////////wMDA////wMDAgICAwMDAwMDAgICAwMDAgICA////////////////AP///////////////8DAwP///////////////////////8DAwICAgP///////////////wD////////////////AwMD////AwMDAwMCAgIDAwMCAgIDAwMCAgID///////////////8A////////////////wMDA////////////////////////wMDAgICA////////////////AP///////////////8DAwP///////////////////////8DAwICAgP///////////////wD////////////////AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD///////////////8A\"/>This is a floating image.

Parents
  • 2070
    Verified Answer
    posted

    Hi,

     

    You need to use 'data' attribute instead of 'src' for embedded image data:

     <img data="encoded image data" />

     Also I don't know how you encoded the image, but there's a static method FormattedTextEditor.EncodeImage that encodes image into a string.

     

    Hope this helps,

    Sandip

Reply Children
No Data