Thread View: news.software.nntp
4 messages
4 total messages
Started by aaronb
Tue, 28 Oct 2003 01:05
Attachment/Message Filesize
Author: aaronb
Date: Tue, 28 Oct 2003 01:05
Date: Tue, 28 Oct 2003 01:05
11 lines
1442 bytes
1442 bytes
I am attempting to write a newsreader and I have a few questions: If a post has an attachment, one piece or one of multiple pieces, what data can I look at to approxmate how large it will be? I am assuing that the attachments will be UUencodeed or yEncoded..... Does it have something to do with how my Lines are in the message? Aaron
Re: Attachment/Message Filesize
Author: aaronb
Date: Tue, 28 Oct 2003 03:01
Date: Tue, 28 Oct 2003 03:01
20 lines
1758 bytes
1758 bytes
I think I found the answer. XOVER returns a byte count. multiple XOVER byte counts added together gives me my total filesize for multipart posts. If there is any tips anyone has I would appreciate it. Thanks. "aaronb" <borgaaron@yahoo.com> wrote in message news:3f9d96c4$0$47954$c3e8da3@news.astraweb.com... > I am attempting to write a newsreader and I have a few questions: > > If a post has an attachment, one piece or one of multiple pieces, what data > can I look at to approxmate how large it will be? I am assuing that the > attachments will be UUencodeed or yEncoded..... > > Does it have something to do with how my Lines are in the message? > > Aaron > >
Re: Attachment/Message Filesize
Author: Curt Welch
Date: Wed, 29 Oct 2003 19:46
Date: Wed, 29 Oct 2003 19:46
15 lines
1910 bytes
1910 bytes
"aaronb" <borgaaron@yahoo.com> wrote: > I think I found the answer. XOVER returns a byte count. multiple XOVER > byte counts added together gives me my total filesize for multipart > posts. If there is any tips anyone has I would appreciate it. Thanks. XOVER returns a line count and a byte count. If you want to know how large the article is in bytes, then that's your answer. If you want to guess at the size of the attachment after it's decoded, then you have to try and guess if the article is using uuencoding or yEnc (or something else). By using both the line count and the byte count, you can can make a good guess at that because yEnc uses longer lines. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Attachment/Message Filesize
Author: boob
Date: Sun, 02 Nov 2003 17:51
Date: Sun, 02 Nov 2003 17:51
14 lines
1740 bytes
1740 bytes
curt@kcwc.com (Curt Welch) wrote in news:20031029144642.923$zN@newsreader.com: > > XOVER returns a line count and a byte count. If you want to know how > large the article is in bytes, then that's your answer. If you want > to guess at the size of the attachment after it's decoded, then you > have to try and guess if the article is using uuencoding or yEnc (or > something else). By using both the line count and the byte count, you > can can make a good guess at that because yEnc uses longer lines. Also for yEnc you have both the decoded file size and chunk size in the yEnc header, so by reading the first 2 lines you know exactly your decoded size.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads