metzli icon indicating copy to clipboard operation
metzli copied to clipboard

Support for large data

Open ghost opened this issue 6 years ago • 1 comments

Hi, when I want to encode large json data i see this error: 'InvalidArgumentException with message 'Data too large'. Is it possible to increase max. data size? Thanks in advance.

ghost avatar Feb 14 '19 11:02 ghost

Aztec codes can contain up to about 1914 bytes (which includes error correction data). Depending on your application, you might be able to encode more data if you lower the ECC rate (second parameter of Encoder::encode).

z38 avatar Feb 15 '19 09:02 z38