-2

I have a question regarding the storage of text and image files from a RichTextBox in an external file.

My problem: I am developing a program for task management. I have developed my own project for the RichTextBox to implement the drag and drop of image files like Outlook. It all works perfectly, but I cant save the text and the image files together. For example: XML document can only store a text string. At the moment I have managed to save the text and the image path individually and then read out sequentially. It works fine, but now the images no longer are on their initial position.

I've been thinking about the images to convert, save and convert back while reading, but I really do not get the position in the RichTextBox to the series.

I would like to know if anyone has a solution to this issue and thank you in advance for the time.

Ghasem
  • 14,455
  • 21
  • 138
  • 171
Xeidos
  • 342
  • 2
  • 14
  • So you want to create a file with images and text? – Nahuel Ianni Oct 01 '14 at 08:15
  • And you didn't try anything! It's not a "Code it for me" site, you knw. – Ghasem Oct 01 '14 at 08:17
  • Yeah, I want to save this file and reload it after shut down the programm. The text and images have to be on their initial position. – Xeidos Oct 01 '14 at 08:17
  • Ohh I tried it, but my solution dont worked... thats why I just ask this community. Like I wrote: I can save my Text and Image in external .xml file but after the reload my images are not longer on the initial position. I just asked for a fileformat or a solution for this problem. – Xeidos Oct 01 '14 at 08:19
  • Its better to update your question with what you have tried so far. – Ghasem Oct 01 '14 at 08:22

1 Answers1

2

You could convert the image into a string and store that into the xml.Take a look at the following link: Convert image to string