Some XMPP clients embed images in XHTML like this: ``` <message type="groupchat" to="[REDACTED]@codingteam.org.ru/[REDACTED]" from="codingteam@conference.jabber.ru/O01eg" id="a1092a" xml:lang="ru" xmlns="jabber:client"> <body>Получено 35448 байт изображения.</body> <html xmlns="http://jabber.org/protocol/xhtml-im"> <body xmlns="http://www.w3.org/1999/xhtml"> <br /> <img alt="img" src="data:image/jpeg;base64,[BASE64 DATA EXPUNGED]" /> </body> </html> </message> ``` We should either find a way to redirect XHTML as-is or at least to extract the image data from it.
Activity