iTextSharp.xmp.XmpUtils.DecodeBase64 C# (CSharp) Method

DecodeBase64() public static method

Decode from Base64 encoded string to raw data.
Thrown if the given string is not property base64 encoded
public static DecodeBase64 ( string base64String ) : byte[]
base64String string /// a base64 encoded string
return byte[]
        public static byte[] DecodeBase64(string base64String) {
            try {
                return Base64.Decode(GetBytes(base64String));
            }
            catch (Exception e) {
                throw new XmpException("Invalid base64 string", XmpError.BADVALUE, e);
            }
        }