I am building on bot application where i need to show images in Carousel, I am using Hero card. In this card i need to show image which i am getting from API, image data is in byte format and in herocard it is asking for URI cant we pass byte data in Herocard?
allAttachements.Add(new HeroCard
{
Title = "test" ,
Subtitle = "SubTitle",
Text = "Details",
Images = new List<CardImage> { new CardImage(url) },
})
}.ToAttachment()
);
I tried with below line but it wont work.
string url = $"data:image/png;base64,{ImageData}";
Appreciate your help in advance.