Decodes data using the MIME base64 format and returns the string as a LONG VARCHAR.
BASE64_DECODE( string-expression )
string-expression The string that is to be decoded. Note that the string must be base64-encoded.
LONG VARCHAR
SQL/2003 Vendor extension.
The following inserts an image into an image table from an embedded SQL program. The input data (host variable) must be base64 encoded.
EXEC SQL INSERT INTO images ( image_data ) VALUES ( BASE64_DECODE ( :img ) ); |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |