tags:

views:

224

answers:

2

How to write binary data into XML using LINQ which is being read from registery.

Eg: ήì\ÎQÝÜ$Ñ.Ì6Å·xxµ0©ÐQfô:S9}:&......

+2  A: 

Use something like Base64 encoding to convert the binary into characters acceptable for XML.

+1  A: 

I think the simplest way is to base64 encode the data and then set it as element text. Convert.ToBase64String and Convert.FromBase64String should get you started.

Jon Skeet
Thanks Jon will give a start on you guidelines
Nev_Rahd