3
我有從用戶上傳的圖片的字節數組。我需要渲染此字節數組作爲圖像上的Skype 和其它信道使用殭屍框架顯示字節數組作爲使用botframework的圖像
我有從用戶上傳的圖片的字節數組。我需要渲染此字節數組作爲圖像上的Skype 和其它信道使用殭屍框架顯示字節數組作爲使用botframework的圖像
圖像可以發送作爲base64編碼:
byte[] imagedata = {your image}
var image64 = "data:image/jpeg;base64," + Convert.ToBase64String(imagedata);
reply.Attachments.Add(new Attachment()
{
ContentUrl = image64,
ContentType = "image/jpeg",
});