Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getBarcodePNG sometimes adds % at the end #190

Open
pokhiii opened this issue Mar 15, 2024 · 0 comments
Open

getBarcodePNG sometimes adds % at the end #190

pokhiii opened this issue Mar 15, 2024 · 0 comments

Comments

@pokhiii
Copy link

pokhiii commented Mar 15, 2024

We are using this code to generate and save the barcode png image.

$barcodeIdentifier = 'box$123456$'
$barcodeFormat = 'C39+';
$barcodeEncoded = DNS1D::getBarcodePNG($barcodeIdentifier, $barcodeFormat);
$barcode = base64_decode($barcodeEncoded);

$this->entity
             ->addMediaFromString($barcode)
            ->usingFileName('identifier.png')
            ->toMediaCollection('barcodes');

When we scan it back it returns box$123456$%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant