Hi,
I was trying to save a word document which has images, tables, lists into MSSQL database. I could store the document in varbinary(MAX) but while fetching the document back, this line from the programmer’s guide throws invalid casting error:
byte[] buffer = (byte[])dataTable.Rows[0]["FileContent"];
I fixed it with Unicode solutions and all. My issue is, the images from the original
document
is lost somewhere. I can see the placeholders but the images aren’t there.
Also, the saving and retrieving seems inconsistent with different word document,
especially with (.docx). Any help is appreciated. Thanks in advance.