Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Decode Base64 into Memo or file
#1
Hi,

I try to decode a string encoded in base64 into Memo o alternatively in a text file...

try this but not work...

Code:
var
   b : TBytes;
   testo : string;

begin
   ...
   b := TNetEncoding.Base64.DecodeStringToBytes(mystringencodedbase64);
   testo := TEncoding.ANSI.GetString(b);
   memo1.text := testo;

in memo is show symbol not my original string ....

thanks
Alessandro Romano
Reply


Messages In This Thread
Decode Base64 into Memo or file - by staff@ergosoft.it - 05-11-2019, 09:00 AM
RE: Decode Base64 into Memo or file - by rlebeau - 05-14-2019, 08:13 AM
RE: Decode Base64 into Memo or file - by rlebeau - 06-25-2019, 05:52 PM
RE: Decode Base64 into Memo or file - by kudzu - 06-25-2019, 04:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)