How to open Word imbeded in SQL Srv img field?
The Word document in saved (imbeded) in a image field in the SQL Server. I don't know how to open the document.
I have tried to use FileStream and write it to a file. It makes the file but it is in a funny format: binary or something.
Here is my code:
byte wordole = null;
wordole = (byte)dsDocuments.Tables.Rows["word_object"];
int arraySize = new int();
arraySize = wordole.GetUpperBound(0);
FileStream fs = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write);
fs.Write(wordole, 0, arraySize+1);
Does anybody have a solution?