-
I would like to show attachment file size in bytes but only using IMessageSummary ie so we don't have the overhead of downloading the message. I looked at Am I looking at this Octets value wrong? If Octets is unusable for this is there a way to get the attachment file size from a summary or do I have to download the message? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'll add a note to this effect in the documentation.
Unfortunately, there is not. As you've discovered, though, base64 encoding data tends to result in a size that is roughly ~33% larger than the original data (that's because for every 3 input bytes, it outputs 4 bytes of encoded data - and then every ~57 input bytes or so, there is also a newline sequence added which is an additional 2 bytes |
Beta Was this translation helpful? Give feedback.
BodyPartBasic.Octets
is the size of the body part in its transfer encoded state (and not the size that it would be decoded).I'll add a note to this effect in the documentation.
Unfortunately, there is not.
As you've discovered, though, base64 encoding data tends to result in a size that is …