private void btnDecode_Click(object sender, System.EventArgs e) { char[] data = txtEncoded.Text.ToCharArray(); Base64Decoder myDecoder = new Base64Decoder(data); StringBuilder sb = new StringBuilder(); byte[] temp = myDecoder.GetDecoded(); sb.Append(System.Text.UTF8Encoding.UTF8.GetChars(temp)); txtDecoded.Text = sb.ToString(); }
private void btnDecode_Click(object sender, System.EventArgs e) { char[] data=txtEncoded.Text.ToCharArray(); Base64Decoder myDecoder=new Base64Decoder(data); StringBuilder sb=new StringBuilder(); byte[] temp=myDecoder.GetDecoded(); sb.Append(System.Text.UTF8Encoding.UTF8.GetChars(temp)); txtDecoded.Text=sb.ToString(); }