I'm trying to create a 22x22 datamatrix. It has a max length of 43 alphanumeric characters in each position.
I have a url string with a length of 60. Is there a way to encode the string into another shorter string to reduce it's length so it will fit in the 43 character limit?
I can't use url shorteners because the app is designed to work without internet. Enter the string into a database and get a short id that references it's also not an option.
I tried base64 and hexadecimal encodings, but they return longer strings than the initial. Any ideas?
Update: (try to explain better the problem)
The problem is cause I have the size for the datamatrix limited to 22x22 (43 alphanumeric characters, 55 numeric) and if i add more doesn't fit in the print desing reserved size. I have a local app where the datamatrix is generated, and that need to works without internet (downloading server information on certain dates) and print the datamatrix. A server will respond when the url inside the datamatrix is readed by a qr reader app.