Skip to content

Issue generating QR code with long string #8

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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