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

An image in CardAction does not show the image in Microsoft Teams when it is provided as a Base64 string #11724

Open
ChetanSharma-msft opened this issue Oct 25, 2024 · 3 comments
Assignees
Labels
needs-triage 🔍 teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@ChetanSharma-msft
Copy link
Collaborator

Steps to reproduce

Copied from: microsoft/botbuilder-dotnet#6854
Posted by: @rliberoff

Details:
Version: 4.22.7

Describe the bug
For Microsoft Teams, when creating a CardAction, the Image property does not accepts a base64 string representing the image. It force us to use an URL to a public image.

The code does not throws any error or exception, but the image information is just ignored.

To Reproduce

Use the following code:
messageActivity.Attachments.Add(new Attachment
{
ContentType = OAuthCard.ContentType,
Content = new OAuthCard
{
Text = settings.Text,
ConnectionName = settings.ConnectionName,
Buttons = new[]
{
new CardAction
{
Title = "The title",
Text = "The text",
Image = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." // Truncated
Type = ActionTypes.OpenUrl,
},
},
TokenExchangeResource = signInResource.TokenExchangeResource,
TokenPostResource = signInResource.TokenPostResource,
},
});

Expected behavior

In Microsoft Temas, the image provided as base64 string in the Image property should appear.

Actual behavior

For Microsoft Teams, when creating a CardAction, the Image property does not accepts a base64 string representing the image. It force us to use an URL to a public image.

The code does not throws any error or exception, but the image information is just ignored.

Error details

No response

Copy link
Contributor

Hi ChetanSharma-msft! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@ChetanSharma-msft ChetanSharma-msft added the teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label label Oct 25, 2024
@sayali-MSFT
Copy link

@rliberoff-Thanks for reporting your issue.
We will check this at our end and will get back to you.

@sayali-MSFT
Copy link

@rliberoff - We are able to repro that issue, We have raised bug for the same. We will inform you once we get any update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage 🔍 teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

No branches or pull requests

3 participants