Base 64 Decode with Convert class - CSharp System

CSharp examples for System:Converter

Description

Base 64 Decode with Convert class

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//www  .j  a va 2s .c  om

public class Main{
        /// <summary>
        /// base64 ???
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static string DeCode(string str)
        {
            byte[] outputb = Convert.FromBase64String(str);
            return Encoding.Default.GetString(outputb);
        }
}

Related Tutorials