jeudi 22 août 2019

how to use laravel milon / barcode images

I'm trying to use the milon / barcodes library to generate barcodes, but I want to generate in png format to save it. I tried it this way:

<img src="data:image/png;base64," alt="barcode for hello world">

but this happens: https://imgur.com/a/YKPU8S7


I tried that too:

\Storage::disk('public')->put('test.png',base64_decode(DNS1D::getBarcodePNG("4", "C39")));

and another mistake happens: https://imgur.com/a/UobDt0z

Could someone help me troubleshoot this error? I already made the symbolic link of storage, no more what to do.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire