I\'ve this string from Mysql db:
$img_base64_encoded = \'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+
Well, you can actually, looking at the code you just neet to add a '@' before the base64 encoded string:
$img_base64_encoded = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA0gA...'; $img = ''; $pdf->writeHTML($img, true, false, true, false, '');
Tested with the last version of TCPDF