I have uploaded my MS word file in Database in binary format. I am able to retrive it back. But I am planning to open up the word file in read only mode. I have done much operations on the file which I have stored in databse like trackrevisions,protection etc. Now I just want only one thing to happen. I want to convert the binary data efficiently back to text(string) which was origianlly stored in the database. Here are some ways I am trying to get text back from binary but all of them return symbols(format not supported) rather than text.
string str1 = System.Text.ASCIIEncoding.ASCII.GetString(bytes);
string x = Encoding.ASCII.GetString(bytes).ToLower();
Any suggestions