This project has moved. For the latest updates, please go here.

ZXing.WriterException: data bits cannot fit in the QR Code448 > 440

Mar 19, 2012 at 9:07 AM
Edited Mar 19, 2012 at 9:09 AM
ZXing.WriterException: data bits cannot fit in the QR Code448 > 440
   at ZXing.QrCode.Internal.Encoder.terminateBits(Int32 numDataBytes, BitArray bits) in C:\Projekt\ZXing.Net.Source.0.5.0.0\qrcode\encoder\Encoder.cs:line 328
   at ZXing.QrCode.Internal.Encoder.encode(String content, ErrorCorrectionLevel ecLevel, IDictionary`2 hints, QRCode qrCode) in C:\Projekt\ZXing.Net.Source.0.5.0.0\qrcode\encoder\Encoder.cs:line 123
   at ZXing.QrCode.QRCodeWriter.encode(String contents, BarcodeFormat format, Int32 width, Int32 height, IDictionary`2 hints) in C:\Projekt\ZXing.Net.Source.0.5.0.0\qrcode\QRCodeWriter.cs:line 72


I get an exception, seemingly at random using ZXing.Net.
First I thought it was related to unicode, but it also happens with latin-1 and vanilla characters.

Coordinator
Mar 26, 2012 at 6:20 PM

Back from vacation I can give you an answer.

Please give me some example data which produce the exception.