Recent

Author Topic: Decode base64 string example  (Read 2275 times)

arirod

  • New Member
  • *
  • Posts: 29
Decode base64 string example
« on: January 24, 2023, 02:05:00 pm »
How convert/decode base64 json string to stream into twimage (widget)? Any example?
Thanks
Ari

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

arirod

  • New Member
  • *
  • Posts: 29
Re: Decode base64 string example
« Reply #2 on: January 24, 2023, 02:57:15 pm »
Thanks tô repleto, but i dont use  normal "base64.pas" because generate error on fcl/lcl...i try using JS método, but i not know implement..( sorry my english)

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Decode base64 string example
« Reply #3 on: January 24, 2023, 03:10:41 pm »
The principle is the same, just cut the Base64 stuff out of code from GetMem's code and insert what "Pas2JS" deliver as Base64 decoded, put that into a stream, assign stream to image and you have what you wanted.

But maybe I do misunderstand your request.

No worry about your english, mine aint better  ;D
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

 

TinyPortal © 2005-2018