Article View: news.software.nntp
Article #46470Re: Encoding binary data
From: Brad Knowles
Date: Wed, 17 May 2000 00:00
Date: Wed, 17 May 2000 00:00
52 lines
2993 bytes
2993 bytes
In article <3921BBF8.F251A540@unidata.ucar.edu>, Anne Wilson
<anne@unidata.ucar.edu> wrote:
> When using NNTP my understanding is that lines
> can't be greater than 1000 chars, is that right?
> Why is there a line limit at all? And, assuming
> there is a line limit, is 8 bit encoding ok, or
> must it be some other encoding?
I don't think that you can safely assume that 8-bit encoding is
okay. The best thing to do is to properly MIME base64 encode the
content, and it will take care of line length limitations, character set
limitations, etc... for you.
While the network may be 8-bit clean, the news transit software at
the other end might not (in fact, it probably wouldn't be able to handle
embedded NULLs).
> In transferring our binary data, we don't want to
> spend lots of time encoding the data. Also, we go
> to some trouble to compress the data for faster
> transmission, but I'm afraid the subsequent
> encoding will mitigate that gain.
Yup, that's one of the prices you pay.
> On a very
> simple test of a very large binary, mimencode took
> several minutes and increased the size of a binary
> product by 35%. That's depressing! :-(
Hey, be glad you only increased the size by 35%! If you had
uuencoded it instead, that would have been more like 45% larger.
> Any information would be appreciated. Thank you!
I understand your desire to simply squirt out the data as rapidly as
you possibly can, and with an absolute minimum of additional processing,
but if you want to use off-the-shelf USENET news server software as a
medium upon which to transmit your large quantities of data, then I
believe that there are certain prices you're going to have to pay -- one
of them is that you'll have to MIME base64 encode all your outgoing
binary data.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a news server administrator outside of North America and Western
Europe? If so, and you're interested in getting a newsfeed from a server
in the Freenix Top 50, please send me private e-mail for details.
Technical Details
Message-ID:
<brad-EFB5E3.12323217052000@news.skynet.be>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<3921BBF8.F251A540@unidata.ucar.edu>Show Full Headers
Complete Article Headers
Message-ID: <brad-EFB5E3.12323217052000@news.skynet.be> Subject: Re: Encoding binary data Date: Wed, 17 May 2000 00:00:00 +0000 From: Brad Knowles <brad@shub-internet.org> References: <3921BBF8.F251A540@unidata.ucar.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 624469573 Mail-Copies-To: poster X-Complaints-To: abuse@skynet.be X-Trace: news0.skynet.be 958559563 1341 195.238.1.121 (17 May 2000 10:32:43 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ User-Agent: MT-NewsWatcher/3.0 (PPC) NNTP-Posting-Date: 17 May 2000 10:32:43 GMT Newsgroups: news.software.nntp