I have a base64 encoded string.
How can I write this base64 encoded string to a file?
Try this:
File.WriteAllBytes(@"c:\yourfile", Convert.FromBase64String(yourBase64String));
As a first pointer, check out MSDN's documentation on the XmlTextreader's ReadBase64 Method... http://msdn.microsoft.com/en-us/library/system.xml.xmltextreader.readbase64.aspx