Well, that turns me on, lol.
I have a Base64 string and am trying to decode it in a TMemoryStream using TIdDecoderMIME.
My current code is as follows:
Var MStream:TMemoryStream; Decoder:TIdDecoderMIME;
begin
Decoder := TIdDecoderMIME.Create(nil);
MStream := TMemoryStream.Create;
Decoder.DecodeToStream(BSting,MStream);
end;
Where is the string BString = My Base64.
Now that the code is running, the "Uneven Size in DecodeToString" error message appears.
Any ideas?
Any help is appreciated. Thank.
source
share