Skip to content

Handle images received from XMPP #100

Open

Description

@ForNeVeR

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions