I tried the following, but SharePoint seems to dislike the :
{
"elmType": "img",
"attributes": {
"src": "='data:image/png;base64,'+[$IconAsBase64]"
}
If I change data: for data~ the image show as a broken image (as expected), but with data: the entire component is omitted.

IconAsBase64column?