BASE64-DECODE function Converts a Base64 character string into a binary value. The result is a MEMPTR containing the binary data. Syntax BASE64-DECODE ( expression ) expression A CHARACTER or LONGCHAR expression containing the string you want to convert. Example Following is an example using the BASE64-DECODE function: DEFINE VARIABLE decdmptr AS MEMPTR NO-UNDO. DEFINE VARIABLE decdlngc AS LONGCHAR NO-UNDO. COPY-LOB FROM FILE "C:\myicons\testencode" TO decdlngc. decdmptr = BASE64-DECODE(decdlngc). COPY-LOB FROM decdmptr TO FILE "C:\myicons\test.ico".
BASE64-DECODE ( expression )
DEFINE VARIABLE decdmptr AS MEMPTR NO-UNDO.
DEFINE VARIABLE decdlngc AS LONGCHAR NO-UNDO.
COPY-LOB FROM FILE "C:\myicons\testencode" TO decdlngc.
decdmptr = BASE64-DECODE(decdlngc).
COPY-LOB FROM decdmptr TO FILE "C:\myicons\test.ico".