Board index » delphi » Problem with base64 encoding/decoding (using INDY 8.1 beta)
Matt
![]() Delphi Developer |
Sun, 21 Dec 2003 00:55:34 GMT
Problem with base64 encoding/decoding (using INDY 8.1 beta)
I was trying to encode/decode a JPEG image and it is not working. When I
try to decode the text to a jpeg file, I receive "Uneven size in DecodeToStream" exception. (It seems to encode correctly) I used Mabry's ActiveX encoder/decoder to test also, and its encoded text I would like to use Indy's, if it works. Please let me know if I screwed Thanks. here's my code: procedure TForm1.btnDecodeClick(Sender: TObject); sl: TStringList; sl.LoadFromFile( 'C:\DelphiEncode.txt' ); IdDecoderMIME1.DecodeToStream( s, strm ); |