0

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

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

1
  • 1
    XML isn't meant for binary data. Why are you trying to make it do strange things? Commented Apr 30, 2009 at 21:48

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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.

1 Comment

Thanks Jon will give a start on you guidelines

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.