日期:2014-05-17  浏览次数:21169 次

解析邮件附件
我用C#实现pop3邮件接收,现在将附件接收出来,附件是base64编码,但是附件格式我.rar格式,请问,我如何将它解析成.rar格式文件?


下面是接收到的附件
base64PERJVj5hYmNkZWZnaGlqa2xtbjwvRElWPg==------=_NextPart_4C62487E_08E82A70_4ABE4497--------=_NextPart_4C62487E_08E82A70_55DEDAFAContent-Type: application/octet-stream; charset="gbk"; name="pop3mailclient.rar"Content-Disposition: attachment; filename="pop3mailclient.rar"Content-Transfer-Encoding: base64UmFyIRoHAM+QcwAADQAAAAAAAAANcXQgkDYA/BkAANCXAAAClRrU1oF0DTcdMxEAIAAAAFBvcDNNYWlsQ2xpZW50LmNzAPA2yhMMIBDMzNFVwBoZvfoF+Dqv0cjfNet27v7no5LsvezZHu7B+vgnY3BwDt2joUaTjXK2k+JN2Wc3k+79HXJbtbTeZhJSJKSbKbctvBWN0RtM+DDnlJOO/Es/wg/jmYsCJxIHCQkigDkief6WrfXFjdw+TwfZkS+VjigwYHbuN6B+Kx+jr7sL11excnpX8PodxznisW4Lvs/iinvqjjyRtY+tf67jvuHCvgvt4XYsTd11q1nNnkHxsfldgw3X81fv8JoPVmznpkxYoIcY3+7gbiizxabfcajJhyaQopLNwar14PsRaM6fxiyYcLcPX5ZfFxR6dEcAYzazQ9ga5ONrq0IXz/HnD5XtALUGcDTo+GW73L+YuX08v4aDXYfb8JoAee6X4xscGdOlaMANPRN9OUbayPvf4yOy4jXjhvvXb4ZPg7R+DHpbv6Vel0soj57TA9e/g06RgS5ZBeL6ZMTfcC8ZlDxwyeSK/BkwZnyaDytcQjSlwGX22vdddxEYBvp6Nhg6tHnLBi/CT72nizWGMt4B7jqfMkbui2DDhDSV1srHiz36MDuEwtMaok65ghzVE7OgR+NlUhuLJGTGscrphXc7zhvrOYnQFHR5g125osfMAYhOAqCIjmNwQwdOPlAsqukDB1te1uPYrsIfaT81uvx/AbXEGn6y2b2ZucHDbP84Z8jnkYgsDTZDYwdTfXFITIjBW0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