[fpc-pascal] base64 decoding

Vinzent Hoefler JeLlyFish.software at gmx.net
Thu Nov 3 08:25:47 CET 2005


On Wednesday 02 November 2005 22:06, Dr. Rolf Jansen wrote:

> Today, I managed to use the fcl base64 classes for decoding
> respective parts of the piped through e-mails. However, it took me
> some time to get it to work, and I have still some doubts if the
> base64 decoding class is stable enough for unattended operation on a
> busy mail server.

Sort of the same problem struck me yesterday, too, but with streams 
which are perfectly valid containing only base64-chars.

// somehow the current implementation of base64 decoding stream is
// broken,  it sometimes raise StreamReadError instead of decoding
// the  values  correctly  (if  you feed $000102...7A7B7C into it,
// it  stops  just  before decoding $7C, or try feeding a constant
// stream  of  $7D  into  it,  it  will  stop after the first byte
// decoded)

Because I need this for XML-RPC server/client stuff, and thus I need the 
HTTP-capabilities of it anyway, I (temporarily?) switched to Synapse's 
SynaCode unit. AFAICS it doesn't have any problems with invalid base64 
chars, it simply ignores them. Lukas, correct me if I'm wrong.

Currently I can't neither file a bug report nor check the current svn if 
it's fixed already, because I don't have access to any of 
*.freepascal.org. :-( Someone's blocking me and I haven't figured out 
why and who yet.


HTH,

Vinzent.

-- 
public key: http://www.t-domaingrabbing.ch/publickey.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20051103/22749ff4/attachment.sig>


More information about the fpc-pascal mailing list