4 ms·
If you really want to put binary data on Twitter, why not encode it in an image? You could probably get several tens of kilobytes of binary data reliably encode
by dheera 9y ago
If you really want to put binary data on Twitter, why not encode it in an image? You could probably get several tens of kilobytes of binary data reliably encoded in a JPEG of the maximum size Twitter allows.
- shujito 9y agoAren't JPEG's lossy? I can't think of a reliable and performant way of retrieving data from a JPEG.
- oh_sigh 9y agoOn compression yes but you can craft a jpeg image which has exactly the pixel data you need. It will fail if someone recompresses your image, but that would be unlikely
- Dylan16807 9y agoTwo or three bits per pixel, grayscale, should be quick and pretty resilient. A hundred kilobytes or more is easy to transfer.
- flashmob 9y agoOr, how about a QR code?
- Dylan16807 9y agoIf you want absolutely terrible density, sure. Still beats 140 characters.
- nacs 9y agoTwitter seems to allow PNGs so might as well use that instead and not run into JPEG compression issues.
- TazeTSchnitzel 9y agoTwitter will mangle your PNGs into JPEGs unless they have an alpha channel.