i am trying to read an xml from binary field in SQL server. i read the blob correctly. but when i want to see file as xml "the data at the root level is invalid. line 1..." error appears.
i searched the web. i met that, the reason is: the xml is not an xml, it is text.
correct i have statement in my code
MyStrData = System.Text.UTF8Encoding.UTF8.GetString(MyData)
then i want to convert the binary to XML. but how can i do that? any idea...
i searched the web. i met that, the reason is: the xml is not an xml, it is text.
correct i have statement in my code
MyStrData = System.Text.UTF8Encoding.UTF8.GetString(MyData)
then i want to convert the binary to XML. but how can i do that? any idea...