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

Any plan to support image data uri #3

Open
cookie314 opened this issue Feb 25, 2020 · 2 comments
Open

Any plan to support image data uri #3

cookie314 opened this issue Feb 25, 2020 · 2 comments

Comments

@cookie314
Copy link

From microsoft/AdaptiveCards#628, AdaptiveCards already supports image data uri.

I tried to send with version 1.2
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAABfUlEQVRIS72UPU/DMBRF+69hYaJIbBUjfwFRkFCLKFH4iBQWOpeJbMBG5kzGJ+pLbOeFhKbhSkdW/O57t07dTowx/4K6OQaNjfXry9rK7IHInRuGaA011EM0n4PMrkLSNF1bzAhchEGaaTCceuegz68Pdb+NnYI2mzcay1WrazDfC0qSp06KoqCxXLW6BvOrIM0QIqcR8az5Qqz6BXFNGSqnEfHMPnWtT7Dyg57jRxPHcbnyhYeDu4SfPmYIDwm/WydICqvovlwJzvMcU2/hp09mCVbNoOhuVRn+EoaPHj6oILOs6iC36JoxdoVpIS5WfpCEhGHhbQtF3fW7MMuqeSKNLMswt4q61idY1UHL5cK0Eb467VnrE6z6Bck15+pyQdhj5RlRD3tcrLqDeMfyJ6rV2aeOT6uDF3Rze2WuF/uHuV6QZtoXXpBNPmeTT/Ab7itpq7NKyOV8fuAFAVdxWxzMds67zPaCYHY2O52eTM1Avo+OD8uTCF7IeJjJD3xajPLilAzRAAAAAElFTkSuQmCC
But failed with this response
b'{"message":"The request could not be fulfilled because of an unknown error. For assistance, please send details about your request and the TrackingID from the response header to our support team: https://developer.ciscospark.com/support.html. TrackingID: ROUTER_5E5471C3-DD2D-01BB-64D7-40687DE464D7","errors":[{"description":"The request could not be fulfilled because of an unknown error. For assistance, please send details about your request and the TrackingID from the response header to our support team: https://developer.ciscospark.com/support.html. TrackingID: ROUTER_5E5471C3-DD2D-01BB-64D7-40687DE464D7"}],"trackingId":"ROUTER_5E5471C3-DD2D-01BB-64D7-40687DE464D7"}'

@jpjpjp
Copy link
Contributor

jpjpjp commented Feb 27, 2020

Is this an issue with the cardSchool bot or are you wanting Webex to supported embbeded images in the card JSON?

If it is the latter can you provide the complete JSON for the card that is failing?

@holocron
Copy link

hello, yes. normally Webex is expected to support this open standard. example of card is below. currently Messages API refuses Image object with this data in url. On other hand, card is showing normally in Card Designer.

{ "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Image", "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAABfUlEQVRIS72UPU/DMBRF+69hYaJIbBUjfwFRkFCLKFH4iBQWOpeJbMBG5kzGJ+pLbOeFhKbhSkdW/O57t07dTowx/4K6OQaNjfXry9rK7IHInRuGaA011EM0n4PMrkLSNF1bzAhchEGaaTCceuegz68Pdb+NnYI2mzcay1WrazDfC0qSp06KoqCxXLW6BvOrIM0QIqcR8az5Qqz6BXFNGSqnEfHMPnWtT7Dyg57jRxPHcbnyhYeDu4SfPmYIDwm/WydICqvovlwJzvMcU2/hp09mCVbNoOhuVRn+EoaPHj6oILOs6iC36JoxdoVpIS5WfpCEhGHhbQtF3fW7MMuqeSKNLMswt4q61idY1UHL5cK0Eb467VnrE6z6Bck15+pyQdhj5RlRD3tcrLqDeMfyJ6rV2aeOT6uDF3Rze2WuF/uHuV6QZtoXXpBNPmeTT/Ab7itpq7NKyOV8fuAFAVdxWxzMds67zPaCYHY2O52eTM1Avo+OD8uTCF7IeJjJD3xajPLilAzRAAAAAElFTkSuQmCC", "style": "person" } ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants