The following
code is an example of how I am trying to use the TIDUUEncoder.
This is how I do if for the TIDUUDecoder, which works fine.
LUUEncoder := TIDUUEncoder.Create(nil);
with LUUEncoder do try
// Encode the string
Reset;
FileName := eFileName.Text;
CodeString(mContent.Text);
CompletedInput;
// Get the data
LData := '';
repeat
LBuffer := GetCodedData;
LData := LData + LBuffer;
until LBuffer = '';
mEncoded.Text := LData;
finally
LUUEncoder.Free;
end;
If I use LData := CompletedInput then I get the data with a string
something like "0; $^YGSD%gdfG[THE ENCODED DATA]" but it is not correct. I have made an encoding of the same date with a stand alone uu encoder and can see the differences are minimal.
Also, it doesn't feel right, to use the Encoder and Decoder
differently.
Thanks
Stacey
This is how I do if for the TIDUUDecoder, which works fine.
LUUEncoder := TIDUUEncoder.Create(nil);
with LUUEncoder do try
// Encode the string
Reset;
FileName := eFileName.Text;
CodeString(mContent.Text);
CompletedInput;
// Get the data
LData := '';
repeat
LBuffer := GetCodedData;
LData := LData + LBuffer;
until LBuffer = '';
mEncoded.Text := LData;
finally
LUUEncoder.Free;
end;
If I use LData := CompletedInput then I get the data with a string
something like "0; $^YGSD%gdfG[THE ENCODED DATA]" but it is not correct. I have made an encoding of the same date with a stand alone uu encoder and can see the differences are minimal.
Also, it doesn't feel right, to use the Encoder and Decoder
differently.
Thanks
Stacey
Stacey
Verner
Ph: +64-9-4154790
Software Developer Fax: +64-9-4154791
DDI: +64-9-4154797
CJN Technologies Ltd. Email: [EMAIL PROTECTED]
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/
Software Developer Fax: +64-9-4154791
DDI: +64-9-4154797
CJN Technologies Ltd. Email: [EMAIL PROTECTED]
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/