I couldn't generate a DataMatrix with binary data.
For example, generating a 256 bytes (values from 0x00 to 0xff) gives a wrong size and/or wrong content DataMatrix.
When the encoding is automatic, the size is incorrect (some additional data is read when scanning the result).
If I force binary (with a buffer filled with 'b' as encodingptr), the content is wrong.
If I force to ASCII 'a', it works but the size is very big because ASCII is not well suited for random binary data.
Jerome.