Skip to main content
 首页 » 编程设计

c#之System.FormatException 解码 Gmail 邮件的原始字段

2024年02月06日32mq0036

<分区>

我正在尝试解码消息。像这样的原始字段:

byte[] mailContent = Convert.FromBase64String(message.Raw);

但我得到了一个System.FormatException。

我在这里错过了什么?有必要做一些额外的步骤吗?谢谢。

**编辑:** 消息。原始内容太大,无法在此处发布,所以我上传了一个 example .