PreviousNextIndex

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
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". 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex