tags:

views:

377

answers:

2

I have a base64 encoded string stored in xml, I've already got a handle on the string, how can I write this base64 encoded string to a file, so that the file is completely usable on the file system?

+4  A: 

Try this:

File.WriteAllBytes(@"c:\yourfile", Convert.FromBase64String(yourBase64String));
Rubens Farias
A: 

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

flq