Contenido

2. Image — ChatWire kind 0x02

Image (ChatWireImage)

Inline image attachment (bytes travel inside the encrypted chat channel). Wire: S2P1 + 0x02 + mimeLen u16 LE + MIME UTF-8 + imageLen u32 LE + image bytes. Source type: ChatWireImage / EncodeImage.

Image

Example (unencrypted)

Logical: mimeType = "image/png", imageBytes = <4 demo bytes>

Hex (unencrypted, truncated image body):
  53 32 50 31  02
  09 00                          # mimeLen = 9
  69 6D 61 67 65 2F 70 6E 67     # "image/png"
  04 00 00 00                    # imageLen = 4
  89 50 4E 47                    # demo payload (not a full PNG)

Decoded: S2P1 | Image | mime=image/png | 4 bytes