<div dir="ltr"><div class="gmail_extra" style>Actually I wonder why the thumbnails need to be Base64 encoded at all; surely the communication is not going through any 7-bit short-lines-of-text -enforcing channel;) Would it not be possible to just pass the PNG (IIRC) bytes as such as a binary blob? Prefixed by information about its length, presumably. And then instead of writing/reading base64 encoded lines, just write/read the specified number of bytes. Would of course be incompatible with existing (Android) remote control implementations, so some way to negotiate versions of the protocol at start would be needed.</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>--tml</div></div>