I am opening a file encoded in base64 and I need to decode it
string[] lines = File.ReadAllLines(open1.FileName);
is there anyway to do this? I have tried doing this.
string[] lines = File.ReadAllLines(Convert.ToBase64String(open1.FileName));
I am opening a file encoded in base64 and I need to decode it
string[] lines = File.ReadAllLines(open1.FileName);
is there anyway to do this? I have tried doing this.
string[] lines = File.ReadAllLines(Convert.ToBase64String(open1.FileName));
you question is not clear
if you want to convert
string[]to array of base64 you can do this :this returns your array with each line encoded in base64. and to reverse it :