MariaDB natively support VARBINARY: https://mariadb.com/kb/en/varbinary/
You would simply have to set the size value large enough to match your existing data (i.e. to cover for the 'max' provision).