I assume that since you are going to use compression before storing lines that these QR codes will not be readable by any client, this should be the application that you wrote (b / c you store a character with an unknown encoding, the client does not will be able to decode).
Instead of compressing and saving a long string in a QR code, ask your application to create a URI (e.g. a GUID or URL), and when your application decodes that URI , it looks at all the values ββ(uncompressed) that you want to save in the QR code. Then your application can simply search for the format in whatever way it wants.
For example, if your persistent storage is an xml file, but it could be anything:
<URI = "http://mydomain.com/790C9704-8C61-435F-991D-CDBB5767AA3D"> <MyElement>14523</MyElement> <MyElement>67548</MyElement> ... <MyElement>46167</MyElement> </URI>
Coded in QR code: "http://mydomain.com/790C9704-8C61-435F-991D-CDBB5767AA3D", then the values ββcan be viewed.
source share