Encodes data using the MIME base64 format and returns it as a 7-bit ASCII string.
BASE64_ENCODE( string-expression )
string-expression The string that is to be encoded.
LONG VARCHAR
SQL/2003 Vendor extension.
The following retrieves data from a table containing images and returns it in ASCII format. The resulting string can be embedded into an email message, and then decoded by the recipient to retrieve the original image.
SELECT BASE64_ENCODE( image_data ) FROM IMAGES; |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |