How to pass binary image into Microsoft Teams Bot Chat

Hey guys, so I’m trying to reply with an image back to my teams bot chat (build with azure bot).

I just cant get this workflow to reply with this binary image. I’m successfully passing it trough the workflow to the last node.

I already have a workflow that can send messages back, that’s fine and working, just cant get the images through.

I just don’t know what the correct parameters are. Here is a Microsoft Teams Bot documentation:

1. Add media attachments to messages in Bot Framework SDK - Bot Service | Microsoft Learn

This is my workflow:

II’ve tried almost everything but it looks like I’m missing some important knowledge here. Any pro could help me please. Thank you

Hello, how are you?

As described in the documentation, file uploads must be done via URL.

I recommend using a file hosting service (in my projects I use minIO, which is compatible with s3).

Another point: you don’t need to make an HTTP request to obtain the bot token and then send messages.

You can create a generic OAuth2 credential; this makes the workflow cleaner.

If my answer helped you, mark it as the solution. I’m happy to help.

1 Like

Hey @gabrielhmsantos

it worked, thank you soooo sooo much :sob: I’ve been struggling with this for several days. :heart: :heart: :heart:

I see no option to mark you answer as "Solution”