bitmap_from_base64

description

Syntax

BITMAP BITMAP_FROM_BASE64(VARCHAR input)

Convert a base64 string(result of function bitmap_to_base64) into a bitmap. If input string is invalid, return NULL.

example

  1. mysql> select bitmap_to_string(bitmap_from_base64("AA=="));
  2. +----------------------------------------------+
  3. | bitmap_to_string(bitmap_from_base64("AA==")) |
  4. +----------------------------------------------+
  5. | |
  6. +----------------------------------------------+
  7. mysql> select bitmap_to_string(bitmap_from_base64("AQEAAAA="));
  8. +-----------------------------------+
  9. | bitmap_to_string(bitmap_from_base64("AQEAAAA=")) |
  10. +-----------------------------------+
  11. | 1 |
  12. +-----------------------------------+
  13. mysql> select bitmap_to_string(bitmap_from_base64("AjowAAACAAAAAAAAAJgAAAAYAAAAGgAAAAEAf5Y="));
  14. +----------------------------------------------------------------------------------+
  15. | bitmap_to_string(bitmap_from_base64("AjowAAACAAAAAAAAAJgAAAAYAAAAGgAAAAEAf5Y=")) |
  16. +----------------------------------------------------------------------------------+
  17. | 1,9999999 |
  18. +----------------------------------------------------------------------------------+

keywords

  1. BITMAP_FROM_BASE64,BITMAP