문제

I use openpop .net library to retrieve mails from mail server with POP3. All works fine but I can't retrieve size of each attachment of mail. I founded GetMessageSize(i) but this size is sum of all attachments.

Then the question is how I can retrieve size of each attachment.

Can anybody help me? Thanks!

도움이 되었습니까?

해결책

Use attachment.Body.

foreach(var attachment in message.FindAllAttachments())
{
    long byteSize = attachment.Body.Length;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top