Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Attachment size incorrect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
zbang.yaniv
Newbie
Newbie


Joined: 31 January 2012
Location: Israel
Online Status: Offline
Posts: 6
Posted: 31 January 2012 at 3:06am | IP Logged Quote zbang.yaniv

Hello,

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 View zbang.yaniv's Profile Search for other posts by zbang.yaniv
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 31 January 2012 at 3:09am | IP Logged Quote Igor

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.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zbang.yaniv
Newbie
Newbie


Joined: 31 January 2012
Location: Israel
Online Status: Offline
Posts: 6
Posted: 05 February 2012 at 2:07am | IP Logged Quote zbang.yaniv

It is the size of the ImapBodyStructure part, so I think it's the attachment's size.

Please have a look at the screen shots:
https://picasaweb.google.com/111666017106644866075/Afterlogic
Back to Top View zbang.yaniv's Profile Search for other posts by zbang.yaniv
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 February 2012 at 2:12am | IP Logged Quote Igor

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.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zbang.yaniv
Newbie
Newbie


Joined: 31 January 2012
Location: Israel
Online Status: Offline
Posts: 6
Posted: 06 February 2012 at 3:51am | IP Logged Quote zbang.yaniv

So in this specific scenario, how exactly do I retrieve the attached file size?
Can I test if it's base64 and if so, divide it by 1.33 ?
Back to Top View zbang.yaniv's Profile Search for other posts by zbang.yaniv
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 06 February 2012 at 4:04am | IP Logged Quote Igor

As long as this is about attachment size, Attachment.Size property should be used.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide