Y
Hacker News
new
|
ask
|
show
|
jobs
by
TheZenPsycho
4634 days ago
Can you think of a way to fit 32x32 pixels reliably in under 128 base64 characters?
edit: hint: it's 768 bits, while 32x32=1024
1 comments
kristopher
4634 days ago
Yes, use DEFLATE[1] before you B64. Also, it does not hurt to up-vote all of these useful comments!
[1]
http://en.wikipedia.org/wiki/DEFLATE
link
TheZenPsycho
4621 days ago
I tried deflate, and I was surprised, it actually worked in about 66% of the cases I tried. The question remains what to do for those remaining 33%
link
[1] http://en.wikipedia.org/wiki/DEFLATE