-
Notifications
You must be signed in to change notification settings - Fork 493
Open
Labels
Area: TeamsThe issue is related to Teams supportThe issue is related to Teams supportbugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.The issue has just been created and it has not been reviewed by the team.
Description
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.
encamina-apicazo, LuisM000, VictorMuMo, Davos95 and dianabisbe
Metadata
Metadata
Assignees
Labels
Area: TeamsThe issue is related to Teams supportThe issue is related to Teams supportbugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.The issue has just been created and it has not been reviewed by the team.