Answers for "save rtf to database"

0

how to save rich text format in database using java

string rtfText; //string to save to db
TextRange tr = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd);
using (MemoryStream ms = new MemoryStream())
{
    tr.Save(ms, DataFormats.Rtf);
    rtfText = Encoding.ASCII.GetString(ms.ToArray());
}
Posted by: Guest on November-19-2020

Code answers related to "save rtf to database"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language