WPF RichTextBox Content (text+image) save to database

In this article I will provide a tip for how we can save the WPF RichTextBox content (text+image) into database.

Create a WPF window and add RichTextBox to it.

Add 3 buttons to the window->

  1. For FileOpenDialog to insert image to the RichTextBox
  2. To save the content to the database
  3. To retrieve content from the database

Create a Table in your database with one column type TEXT


Add the following code to the above added buttons



Up Next
    Ebook Download
    View all
    View all
    F11Research & Development, LLC