public byte[] GetContent() { byte[] data; if (ContentEncoding.Is("base64") && Utilities.IsValidBase64String(_content)) { try { data = Convert.FromBase64String(_content); } catch (Exception) { data = System.Text.Encoding.UTF8.GetBytes(_content); } } else { data = System.Text.Encoding.UTF8.GetBytes(_content); } return(data); }