Syntax
Parameters
bitmap: The supported data type is VARCHAR. Before you load Bitmap data into the database, you can use Java or C++ to create a BitmapValue object, add an element, serialize the data, and encode the data as a Base64 string. Then, pass the Base64 string as an input parameter into this function.
Return value
Returns a value of the BITMAP type.Examples
Create a database namedbitmapdb and a table named bitmap. Use Stream Load to import JSON data into bitmap_table. During this process, use base64_to_bitmap to convert the Base64 string in the JSON file into bitmap data.
-
Create a database and a table in the database. In this example, a Primary Key table is created.
-
Use Stream Load to import JSON data into
bitmap_table. Suppose there is a JSON file named simpledata. This file has the following content anduseridis a Base64-encoded string.Use base64_to_bitmap to convertuseridinto a bitmap value. -
Query data from
bitmap_table.