Forum > Pas2JS

Decode base64 string example

(1/1)

arirod:
How convert/decode base64 json string to stream into twimage (widget)? Any example?
Thanks
Ari

KodeZwerg:
https://forum.lazarus.freepascal.org/index.php?topic=39789.0

arirod:
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:
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

Navigation

[0] Message Index

Go to full version