JL.
JL.

Reputation: 81262

Base64 encoded string to file

I have a base64 encoded string.

How can I write this base64 encoded string to a file?

Upvotes: 82

Views: 133523

Answers (1)

Rubens Farias
Rubens Farias

Reputation: 57926

Try this:

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

Upvotes: 185

Related Questions