Hello Kamil,
Thank you for reaching out to the Microsoft Community. My name is Seun and I'm happy to help.
I understand that you want to Send Image to Teams Webhook with full size.
Please use the following steps to achieve your aim.
A) Upload images when creating an Incoming Webhook
I pulled the following steps from https://learn.microsoft.com/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet :
“1) In the New Teams client, select Teams and navigate to the channel where you want to add an Incoming Webhook.
- Select More options ••• on the right side of the channel name.
- Select Manage channel
- Select Edit.
- Search for Incoming Webhook and select Add.
the Incoming Webhook dialog appears.
- Select Add.
- Provide a name for the webhook and upload an image if necessary.
- Select Create. (Here you will be able to upload the images in full size)
- Copy and save the unique webhook URL present in the dialog. The URL maps to the channel and you can use it to send information to Teams.
- Select Done. The webhook is now available in the Teams channel.
Here is a graphical representation of the steps: https://learn.microsoft.com/microsoftteams/platform/assets/images/create-incoming-webhook.gif "
B) Workarounds
If the Step A, did not work, Consider the following workaround that you can use to achieve the desired result.
- Instead of sending the image directly through the webhook, you can send a URL that points to the image. When a user clicks on the image in the Teams channel, it will open the full-size image in a new tab or window.
Here's how you can implement this:
- Host the image somewhere accessible via a URL: You can host the image on a web server, cloud storage (like Azure Blob Storage), or any other location that provides a publicly accessible URL.
- Send the image URL through the Teams webhook: In your webhook payload, instead of sending the base64 encoded image data, send the URL of the hosted image.
- Users can click the image to open the full-size version: When the message is posted in the Teams channel, users will see a small preview of the image. However, when they click on the image, it will open the full-size version in a new tab or window, since it's just a regular URL.
By following this approach, you can provide a way for users to view the full-size image while still using the Teams webhook functionality. Keep in mind that hosting the images externally may have implications for image availability, bandwidth usage, and potential security concerns, depending on your specific requirements.
I hope this information helps, if you require further help or information, please let me know.
Best Regards,
Seun