Click here to Skip to main content
15,892,199 members
Articles / Programming Languages / C#

Passing binary data in xml: a C# example which puts and gets icon and bitmaps to and from a xml file.

Rate me:
Please Sign up or sign in to vote.
3.27/5 (11 votes)
13 Jun 20011 min read 200K   4.2K   49  
Binary data needs to be base64 encoded to go into an xml file. .Net framework has made this a painless method wiht its System.Xml namespce classes. I use the XmlTextWriter to put in a bitmap and icon image into a xml file. I then use XmlTextReader to parse the xml file and dynamically set the icon a

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions