Cod: Selectaţi tot
$barcode = DNS2D::getBarcodePNG($vanz->id, 'QRCODE'); // generare string cod de bare
$fp = fopen('D:/imgb64.png','wb+');
fwrite($fp,$barcode);
fclose($fp);
Cod: Selectaţi tot
$barcode = DNS2D::getBarcodePNG($vanz->id, 'QRCODE'); // generare string cod de bare
$fp = fopen('D:/imgb64.png','wb+');
fwrite($fp,$barcode);
fclose($fp);
Cod: Selectaţi tot
$barcode = DNS2D::getBarcodePNG($vanz->id, 'QRCODE'); // generare string cod de bare
$imgb64 = base64_decode($barcode);
file_put_contents('imgb64.png', $imgb64);
Cod: Selectaţi tot
echo '<img src="data:image/png;base64,'.DNS2D::getBarcodePNG($vanz->id, 'QRCODE').'" alt="barcode" />';
Cod: Selectaţi tot
$barcode = DNS2D::getBarcodePNG($vanz->id, 'QRCODE'); //iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/AQMAAABtkYKcAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAMpJREFUKJF10LsNgzAQBmBLLujCBmQRS1kLKiKxR1iFCeIV6NxackOkyJe73+BgSCyKT7rjXororelGUf0EAV4ZskZdvghkiL+nQJ+QQ7H+i+aE2Au4hW/XXgk8RtjmCfYIAvg1an0JPHns3KMV+CPkMbR1XIHzM64WIYHhFvcdcA0JxX5OyRmp4LgoTeTraigRbDVgwgNQ0KUtYjfTVIBejhY5gp6qsAMfKiAESHIB/hHwvQy2RxpegHUKICQHR3IGLi974eCyzoYPDn5O1wI1AGsAAAAASUVORK5CYII=
Cod: Selectaţi tot
$barcode = DNS2D::getBarcodePNG($vanz->id, 'QRCODE');
$imgb64 = base64_decode($barcode);
$filename = 'barcode_'.$vanz->id.'.png';
Storage::disk('barcode')->put($filename, $imgb64);