botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Image on Hero card's Button does not render in emulator or web chat and even skype

Open sandeepshm opened this issue 9 years ago • 6 comments

Hi, Image on Hero card's Button does not render in emulator or web chat and even skype also. how do i display the image on my button.

string ImagePath = "file:\" + HttpContext.Current.Request.MapPath("\Images\Like-icon_resize.png"); var heroCard = new HeroCard { Text = response, //Images = new List { new CardImage("http://emojipedia-us.s3.amazonaws.com/cache/fc/cf/fccfb0e89425262e35bc7717bcd9aee9.png") }, Buttons = new List { new CardAction(ActionTypes.PostBack, value: "liked", image: ImagePath, title: "Like") }
}; return heroCard.ToAttachment();

even If I set image propety of button like below, then also image does not render. Buttons = new List { new CardAction(ActionTypes.PostBack, value: "liked", image:"http://emojipedia-us.s3.amazonaws.com/cache/fc/cf/fccfb0e89425262e35bc7717bcd9aee9.png", title: "Like") }

sandeepshm avatar Feb 10 '17 05:02 sandeepshm

@danmarshall are image urls required to specify a http header for an image content type?

willportnoy avatar Feb 10 '17 21:02 willportnoy

"Images on buttons" is conceptually part of the SDK but I haven't seen it implemented in any channel. @tomlm will this continue to be part of the SDK?

danmarshall avatar Feb 10 '17 22:02 danmarshall

image url works for hero card but why doesn't work for CardAction button.

sandeepshm avatar Feb 13 '17 05:02 sandeepshm

DanMar is correct. images on buttons is going to be deprecated because none of our channels support it.

tomlm avatar Mar 10 '17 16:03 tomlm

Is it still the issue? I am facing same issue for ActionTypes.Show Image not showing image.

dnyati avatar Nov 20 '19 08:11 dnyati

Hi @dnyati

This is a closed issue. Please open a new issue, or ask a question on Stack Overflow

I don't think any channels support ActionTypes.ShowImage

EricDahlvang avatar Nov 20 '19 20:11 EricDahlvang