Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Indy9 idEncoderMIME problem

www.cryer.info
Managed Newsgroup Archive

Indy9 idEncoderMIME problem

Subject:Indy9 idEncoderMIME problem
Posted by:"Eddie Shipman" (mrbaseball34@no_spam_gmail.com)
Date:Tue, 25 Apr 2006 10:31:45

Why is the Encode function checking this:
((ABytes mod 3) > 0)

Not all file sizes will be evenly divisible by 3.

How do I defeat this if passing a TFileStream to the Encode
function like this: (AStream is a TFileStream)

  ss := TStringStream.Create(MIMEEncoder.Encode(AStream, AStream.Size));

Replies:

www.cryer.info
Managed Newsgroup Archive