Link to home
Start Free TrialLog in
Avatar of wqclatre
wqclatre

asked on

UU Encode / Decode files

Hello.

I Like to uuencode and decode files to save them in a node in a xml document.

I can se that I have

    IdEncoderUUE1: TIdEncoderUUE;
    IdDecoderUUE1: TIdDecoderUUE;
on the indy misc tab of delphi 7.

How can I do to uuencode a file and put in a string variable. ( and do the same thing the other way. Decode it back)

Avatar of da-vinci
da-vinci

Use EncodeString:

Class function for encoding a String value.
class function EncodeString(const AIn: string): string;

Parameters
const AIn: string
Input value to be encoded.

Return Value
String - Encoded value of the input parameter.
Avatar of wqclatre

ASKER

I cant still figure out how to encode a file that I have on the disk....
Download my unit from:
http://www.geocities.com/emadat/code/UUEncDec.zip

Each of the two functions provided accept a file name and returns a string.

Hope this will work for you.

regards,
Well it does not since it says that
This page is not available.
ASKER CERTIFIED SOLUTION
Avatar of emadat
emadat
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial