Hi all,
I have a WCF service that is returning a block of xml. One element is a CData[] section. My application reads an HTML file out of the database and converts it to a PDF byte[] array using ABCPDF. Then in my XmlWriter Im adding the bytes to the CData section.
The problem is the resulting xml looks like this:
<![CDATA[System.Byte[]]]>
How can I get the string of bytes into the CData section? I've tried things like:
string str;
ASCIIEncoding enc = new ASCIIEncoding();
str = enc.GetString(theData);
and
Convert.ToBase64String(theData);
Im stuck!! Any help would be great, thank you!