Reputation: 81262
I have a base64 encoded string.
How can I write this base64 encoded string to a file?
Upvotes: 82
Views: 133523
Reputation: 57926
Try this:
File.WriteAllBytes(@"c:\yourfile", Convert.FromBase64String(yourBase64String));
Upvotes: 185