Reputation: 2498
How can I put file content in XML?
I am using Linq to SQL and my table has an binary type colums. I want to store table rows as XML file. How can I achive this?
Upvotes: 0
Views: 801
Reputation: 9873
You can encode the binary data using Base16 or Base64 encoding. See here: http://en.wikipedia.org/wiki/Base64
Upvotes: 1
Reputation: 359966
You can base64-encode the binary data to transmit it as text.
See Linq to XML (Base64 Encoded) and Linq to XML - way to write binary Data into XML.
Upvotes: 3