Article View: news.software.nntp
Article #46462Re: Encoding binary data
From: Andrew Gierth
Date: Wed, 17 May 2000 00:00
Date: Wed, 17 May 2000 00:00
18 lines
1592 bytes
1592 bytes
>>>>> "Paul" == Paul Martin <pm@nowster-zetnet.co.uk> writes: >> MIME base64 is designed for robustness not for maximum efficiency, >> the 64 data characters are chosen from the set that is least prone >> to mangling when passing through foreign gateways (especially ones >> that translate character sets). In an NNTP-only environment you >> can do much better with a custom encoding algorithm. Paul> ASCII85 encoding is tempting, why bother? base 128 would be even easier (use octets 128-255 to encode 7 bits each, that avoids all the dangerous characters, have the decoder ignore all octets <128 and insert line breaks at fixed intervals). -- Andrew.
Technical Details
Message-ID:
<871z30x4ls.fsf@erlenstar.demon.co.uk>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> <87bt2511sn.fsf@erlenstar.demon.co.uk> <slrn8i61u0.3qv.pm@manlap.zetnet.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <871z30x4ls.fsf@erlenstar.demon.co.uk> Subject: Re: Encoding binary data Date: Wed, 17 May 2000 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <3921BBF8.F251A540@unidata.ucar.edu> <87bt2511sn.fsf@erlenstar.demon.co.uk> <slrn8i61u0.3qv.pm@manlap.zetnet.co.uk> 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: 624706140 X-Mayan-Date: Long count = 12.19.7.3.17; tzolkin = 3 Caban; haab = 0 Zip X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha