Embed base64 in html

I am using the rich text editor in a blazor compoent and I want to store the complete htnl, including images add, to a database field. 


How can I achieve this in blazor?


Thx

Arjan


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team November 21, 2023 08:07 AM UTC

Hi Arjan,


If you want to store the value of the RichTextEditor along with images to a database, you can upload the selected image to a required destination using the controller action instead of using base64 images. Map the method name into RichTextEditorImageSettings.SaveUrl and provide required destination path through RichTextEditorImageSettings.Path property.


Please check the below documentation for more references,


https://blazor.syncfusion.com/documentation/rich-text-editor/tools/insert-image#server-side-action


Regards,

Vinitha



Loader.
Up arrow icon