Is there a way to embed an image in HtmlEditor from a database?
Can you elaborate? What are you trying to achieve?
What I am planning is to use the HtmlEditor to create /edit a "report" that will be stored in a database with the image. What I was thinking is that instead of pointing to an image URL we would be able to imbed an image from database. We already are uploading images and storing them but have no way of adding in a random spot in report.
How do you retrieve an image from the database? How do you display it to your user?
I am retrieving image from database and load into a memory stream. Currently I display separately in an IFrame using a base64 string.
You can probably use a similar approach with the HtmlEditor - insert an <img>
element with src set to the base64 string.