I\'ve this string from Mysql db:
$img_base64_encoded = \'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+
No need to write as HTML
$img = base64_decode(preg_replace('#^data:image/[^;]+;base64,#', '', $img_base64_encoded)); $this->tcpdf->Image("@".$img, 68, 208, 46, 46);