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.
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
It works perfectly. Thanks a lot.