PreviousNextIndex

BASE64-ENCODE function

Converts binary data into a Base64 character string, and returns a LONGCHAR containing the character data. The resulting LONGCHAR is in the code page specified by -cpinternal.

Syntax

BASE64-ENCODE ( expression ) 

expression
Example

Following is an example using the BASE64-ENCODE function:

DEFINE VARIABLE encdmptr AS MEMPTR   NO-UNDO. 
DEFINE VARIABLE encdlngc AS LONGCHAR NO-UNDO. 
COPY-LOB FROM FILE "C:\myicons\test.ico" TO encdmptr. 
encdlngc = BASE64-ENCODE(encdmptr). 
COPY-LOB FROM encdlngc TO FILE "C:\myicons\testencode". 


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex