| Author |  | 
      
        | zbang.yaniv Newbie
 
  
 
 Joined: 31 January 2012
 Location: Israel
 Online Status: Offline
 Posts: 6
 | 
          Hello,
           | Posted: 31 January 2012 at 3:06am | IP Logged |   |  
           | 
 |  
 I am reading a gmail account which has a message with a 3.4MB size attachment.
 Its size is read by mailbee 7.0 as 4.8MB.
 
 I recall that the documentation states that size is estimated, but this is a big difference. Could it be due to something else?
 
 Thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Is my understanding correct that attachment is 3.4MB but the message itself is 4.8MB in total? If yes, that's a normal thing as attachments are encoded which makes messages grow in size substantially. This doesn't depend on mail server or client used.
           | Posted: 31 January 2012 at 3:09am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | zbang.yaniv Newbie
 
  
 
 Joined: 31 January 2012
 Location: Israel
 Online Status: Offline
 Posts: 6
 | 
          It is the size of the ImapBodyStructure part, so I think it's the attachment's size.
           | Posted: 05 February 2012 at 2:07am | IP Logged |   |  
           | 
 |  
 Please have a look at the screen shots:
 https://picasaweb.google.com/111666017106644866075/Afterlogic
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          According to the documentation page, ImapBodyStructure.Size property returns size of MIME part in encoded state. Thus, looks like the behavior matches the expected one.
           | Posted: 05 February 2012 at 2:12am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | zbang.yaniv Newbie
 
  
 
 Joined: 31 January 2012
 Location: Israel
 Online Status: Offline
 Posts: 6
 | 
          So in this specific scenario, how exactly do I retrieve the attached file size?
           | Posted: 06 February 2012 at 3:51am | IP Logged |   |  
           | 
 |  Can I test if it's base64 and if so, divide it by 1.33 ?
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          As long as this is about attachment size, Attachment.Size property should be used.
           | Posted: 06 February 2012 at 4:04am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |