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


> -1st, what is the source encoding (UTF8, ANSI, ASCII) ???. 

UTF8


> -2nd, try another encoding to decode. Your VAR and strtofile are AnsiString.

Base64 := BytesToString(IDBytes, IndyTextEncoding_ANSI);
IndyTextEncoding_ANSI is not defined ... error....


i found in code only:
  function IndyTextEncoding_Default: IIdTextEncoding;

  function IndyTextEncoding_OSDefault: IIdTextEncoding;

  function IndyTextEncoding_8Bit: IIdTextEncoding;

  function IndyTextEncoding_ASCII: IIdTextEncoding;

  function IndyTextEncoding_UTF16BE: IIdTextEncoding;

  function IndyTextEncoding_UTF16LE: IIdTextEncoding;

  function IndyTextEncoding_UTF7: IIdTextEncoding;
  function IndyTextEncoding_UTF8: IIdTextEncoding;

Base64 := BytesToString(IDBytes, IndyTextEncoding_ASCII);
some result...


thanks 
Alessandro Romano
Reply


Messages In This Thread
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 staff@ergosoft.it - 06-25-2019, 04:00 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)