I have a byte array from the uploaded pic by the user . I need to render this byte array as an image on Skype and other channels using Bot-framework
Asked
Active
Viewed 1,556 times
1 Answers
5
Images can be sent as base64 encoded:
byte[] imagedata = {your image}
var image64 = "data:image/jpeg;base64," + Convert.ToBase64String(imagedata);
reply.Attachments.Add(new Attachment()
{
ContentUrl = image64,
ContentType = "image/jpeg",
});

Lars
- 9,976
- 4
- 34
- 40
-
This is working in Web App Bot, it's throws error in Microsoft teams... – jats Dec 05 '18 at 06:31