In message <mailman.71.1282852048.29448.python-list at python.org>, Navkirat Singh wrote: > The image bytes are a part of a HTTP header content ( not the message body > ). In which case, won’t they be in some encoding like Base-64? I don’t think you’re allowed arbitrary binary bytes in an HTTP header.