> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# bitmap_from_binary

> Converts a binary string with a specific format to a bitmap.

Converts a binary string with a specific format to a bitmap.

This function can be used to load bitmap data to the database.

This function is supported from v3.0.

## Syntax

```Haskell theme={null}
BITMAP bitmap_from_binary(VARBINARY str)
```

## Parameters

`str`: The supported data type is VARBINARY.

## Return value

Returns a value of the BITMAP type.

## Examples

Example 1: Use this function with other Bitmap functions.

```Plain theme={null}
mysql> select bitmap_to_string(bitmap_from_binary(bitmap_to_binary(bitmap_from_string("0,1,2,3"))));
+---------------------------------------------------------------------------------------+
| bitmap_to_string(bitmap_from_binary(bitmap_to_binary(bitmap_from_string('0,1,2,3')))) |
+---------------------------------------------------------------------------------------+
| 0,1,2,3                                                                               |
+---------------------------------------------------------------------------------------+
1 row in set (0.01 sec)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.