Skip to content

Issue generating QR code with long string #8

@tiny2tom

Description

@tiny2tom

I am getting the following error when trying to pass strings of character length 123 or above. The QR is rendered fine otherwise.

Index was outside the bounds of the array.
at Zen.Barcode.CodeQrBarcodeDraw.QRCodeEncoder.divideDataBy8Bits(Int32[] data, SByte[] bits, Int32 maxDataCodewords)
at Zen.Barcode.CodeQrBarcodeDraw.QRCodeEncoder.CalculateQrCode(Byte[] qrcodeData)
at Zen.Barcode.CodeQrBarcodeDraw.QRCodeEncoder.Encode(String content, Encoding encoding)
at Zen.Barcode.CodeQrBarcodeDraw.QRCodeEncoder.Encode(String content)
at Zen.Barcode.CodeQrBarcodeDraw.DrawQr(String text, BarcodeMetricsQr metrics)
at Zen.Barcode.CodeQrBarcodeDraw.Draw(String text, BarcodeMetrics metrics)

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