Set image to Herocard/Thumbnail card from local folder
Hello Team, I want to set image/picture to Herocard/Thumbnail card from my local folder. How can I do it? Please help me on the same.
Hi @chetanmekha, you have two options.
- You can load the file into memory and use the Attachments API to upload it to the channel.
- If the file is small enough, you can turn it into a base64 blob and embed it as a base64 data URI. This page shows a URI like that: https://docs.botframework.com/en-us/core-concepts/attachments/ (search for "base64" to see how it's rendered into the Activity)
Hi @chetanmekha, I'm assuming @dandriscoll's answer helped you out, so I'm closing this issue. Feel free to reopen it if this is not the case. Thanks!
@dandriscoll Is it not possible to set base 64 image to herocard in the facebook channel. Its working fine in emulator but not working in fb
@PrasadGautham does facebook support base64 attachments?
Hi! Just put the full-path. thats work for me.