Novice question on encoding Base64

NEWS Service Manager <NEWS_MGR@oak.cc.kcl.ac.uk> Thu, 27 May 1993 14:36 UTC

Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa06810; 27 May 93 10:36 EDT
Received: from CNRI.RESTON.VA.US by IETF.CNRI.Reston.VA.US id aa06802; 27 May 93 10:36 EDT
Received: from dimacs.rutgers.edu by CNRI.Reston.VA.US id aa11602; 27 May 93 10:36 EDT
Received: by dimacs.rutgers.edu (5.59/SMI4.0/RU1.5/3.08) id AA23073; Thu, 27 May 93 09:57:04 EDT
Received: from relay.pipex.net by dimacs.rutgers.edu (5.59/SMI4.0/RU1.5/3.08) id AA23069; Thu, 27 May 93 09:57:00 EDT
Received: from oak.cc.kcl.ac.uk by relay.pipex.net via JANET with NIFTP (PP) id <02917-0@relay.pipex.net>; Thu, 27 May 1993 14:56:49 +0100
Date: Thu, 27 May 93 12:29 BST
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: NEWS Service Manager <NEWS_MGR@oak.cc.kcl.ac.uk>
To: INFO-IETF-SMTP@pipex.co.uk
Subject: Novice question on encoding Base64
Message-Id: <"relay.pipe.930:27.04.93.13.56.52"@pipex.net>

Relay-Version: VMS News - V6.1 24/02/92 VAX/VMS V5.5-2; site oak.cc.kcl.ac.uk
Path: oak.cc.kcl.ac.uk!doc.ic.ac.uk!agate!spool.mu.edu!caen!malgudi.oar.net!news.ysu.edu!blekul11!frmop11.cnusc.fr!barilvm!hank
Newsgroups: comp.mail.mime,info.ietf.smtp
Subject: Novice question on encoding Base64
Message-ID: <93147.131715HANK@vm.biu.ac.il>
From: Hank Nussbacher <HANK@vm.biu.ac.il>
Date: Thu, 27 May 1993 13:17:15 IDT
Organization: Bar-Ilan University Computing Center, Israel
Lines: 12

Suppose I have text of 151 octets.  This translates into a quantum of
1208 bits.  According to page 16 of RFC1341, I need to pad it with
zero bits until I get a full 6 bit group, so I add a 4 zero bit pad to make
the quantum 1212 bits long.  So far, so good.  Now how many '=' pads
do I have to add?  I didn't fully understand page 16.  If I check
1212 against 24, I am left with a remainder of 12, which doesn't fall
into the 8bit or 16bit remainder spec detailed there.

I am missing something.

Thanks,
Hank Nussbacher