Skip to content

getBarcodePNG sometimes adds % at the end #190

@pokhiii

Description

@pokhiii

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$%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions