Click here to Skip to main content
15,569,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I would like to extract images from a RichTextBox and save them to file. Can any body help me out? Any help / suggestions will be appreciated.

Thanks in advance,

hey croody check this link.
What it does is that it takes the contents of your richtextbox and reads it as a stream. And that stream will be used to store in some location using a SaveDialogBox ! Hope it helps! :)
Share this answer
Hi Tarun.K.S,

Thank you for the suggestion but what I actually want to do is to copy or extract just the images and not everything in the RichTextBox.

Share this answer
NRTFTree - A class library for RTF processing in C#[^]

This library should have everything you need, you can find a set of examples here:[^]

Specifically the image node example does exactly what your looking for.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900