Inline image cannot be shown by iOS Teams app

Koji Tanaka 35 Reputation points
2023-10-13T14:13:14.2666667+00:00

Using below example 5, I send a message to me(48:notes) with inline image via Postman.

The response looks okay and Windows Teams app can show the inline image correctly. But I cannot see it from iOS Teams app. iOS Teams app tries to show the image but nothing is shown after enlarging white paperclip icon. What's wrong the example? Or is there any workaround on it? Thanks for your help.

https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http#example-5-send-inline-images-along-with-the-message

  • This symptom occurs in other chat group.
  • Once I remove the image and restore it using Ctrl-z in the editing screen on Windows Teams app, iOS Teams app can show the image correctly.
  • As I compared the message data before the editing and after, hostedContents looks replaced. Differences are following;
  1. Before editing, there is no "itemid" property in <img> tag though, it is added after editing.
  2. Also, the getting hostedContents' URL are a different like below. (These are b64encoded in URL getting hostedContents)

before: 'id=x_0-ea-d7-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,type=1,url=https://as-api.asm.skype.com/v1/objects/0-ea-d7-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/views/imgpsh_fullsize_anim'

after: b'id=x_0-ea-d3-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,type=1,url=https://as-api.asm.skype.com/v1/objects/0-ea-d3-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/views/imgo'

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,267 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,886 questions
{count} votes

Accepted answer
  1. Chen Guo 95 Reputation points
    2023-10-14T03:59:31.83+00:00

    I got the same problem. In fact, you don't need to delete image and undo it. You just click edit and confirm without any change, then the image is then shown up in the mobile app.

    In addition to above problem that you cannot see inline image in the mobile app, I have some other observations:
    on the desktop version, inline images are shown and clickable to see an enlarged image in chat message. But in channel, all inline images are shown but unclickable, so not able to see an enlarged image. And you cannot right click to copy these images as well.
    I think things are working differently in channel message and chat message somehow.

    This kind of issues started to appear since around middle September (before that everything is working fine). Are there modifications Microsoft made on graph APIs leading to this problem?


0 additional answers

Sort by: Most helpful