-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sending pure binary over datauri #6
Comments
The charset you want is ISO-8859-1 . It preserves binary data exactly. |
Sweet Thanks. Btw, I'm a bit curious as to how you transmit your files. Do you just transmit binary? Or is there a manifest you also send? |
For now QRStream just dumps the file content straight into the QR codes, in order, in ISO-8859-1. So if you're receiving a text file and do not have qr stream, you can read into the clipboard and paste the results one after the other into a text file and have back the exact same file. Similarly you can generate codes from the commandline with split. But the user needs to read them exactly in order and know what to do with the content already. |
I see, so it's not fully autonomous, in the sense of telling the user what But I like your approach of writing binary stream straight to a file. But I thought about mixing binary data into a datauri container for space So for both tagdrop and qrstream, we need a binary transmission system that
A possible approach is to look at the NDEF standard, and see if that can be |
I consider ordering an issue but I think it is best solved by submitting a proper patch to zxing that implements structured append more fully. The QR code format already supports structured append & character encoding information. But since some clients would be stuck in the situation of being unable to access structured append information from the codes they read (or unable to generate it with the library they use), it would be great to support them with a general format as you say. Here are some ideas for manifest formats:
md5 hash sequence can maybe be shrunk to fit in the QR code by hashing larger chunks of the data. Additionally if a user is sending 100 codes they are less likely to care if there is more manifest data on some small number of extra codes. Other links: https://en.wikipedia.org/wiki/YEnc https://en.wikipedia.org/wiki/Parity_file |
This is just a brainstorm...
ASCII being 7bit is not binary safe. base64 is not compact. Hex is not compact.
maybe use
;charset=UTF-8
to send binary data safely? Even if it looks like UTF-8 gibberish, since it is UTF-8, it is 8bit, thus 8bit binary content is safe.Or should we use a specialized token instead?
The text was updated successfully, but these errors were encountered: