Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle images received from XMPP #100

Open
ForNeVeR opened this issue Mar 7, 2020 · 0 comments
Open

Handle images received from XMPP #100

ForNeVeR opened this issue Mar 7, 2020 · 0 comments

Comments

@ForNeVeR
Copy link
Member

ForNeVeR commented Mar 7, 2020

Some XMPP clients embed images in XHTML like this:

<message type="groupchat" to="[REDACTED]@codingteam.org.ru/[REDACTED]" from="[email protected]/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
Projects
None yet
Development

No branches or pull requests

1 participant