As I understand from your question, you need to extract the images from a RadDocument
instance, loaded in RadRichTextBox
. Please correct me if I am wrong.
If this is the case, the following code extracts the images from the RadDocument and saves them to a specified location:
List<ImageInline> images = radRichTextBox.Document.EnumerateChildrenOfType<ImageInline>().ToList();
basePath = @
i = 0; i < images.Count(); i++)
ImageInline image = images[i];
(FileStream fs = File.Create(
Stream imageStream =
Hope this helps.
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.