# Send image via Teams

**URL:** <https://forum.inductiveautomation.com/t/send-image-via-teams/75301>\
**Category:** Ignition\
**Created:** [June 20, 2023, 7:42pm UTC](https://forum.inductiveautomation.com/t/send-image-via-teams/75301 "2023-06-20T19:42:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chad\_Campbell](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@Chad\_Campbell](https://forum.inductiveautomation.com/u/Chad_Campbell)\
**Post date:** [June 20, 2023, 7:42pm UTC](https://forum.inductiveautomation.com/t/send-image-via-teams/75301/1 "2023-06-20T19:42:40Z")

</div>

Good afternoon,

I have a teams webhook setup and I can send text via a button click. I recently created a printtoimage line of code to take a screenshot of the screen and would like to setup the image to be sent through my webhook to Teams. Is this possible and if so how would I go about doing this? Below is the code on my button so far, just not sure how to change it to send the image instead of saving it. Any help would be appreciated.

```auto
system.print.printToImage(event.source.parent, "C:\\temp\\Screen.jpg")
message = {'C:\\temp\\Screen.jpg'}

url = "Webhook"

system.net.httpPost(url, "Application/Json", message, 10000, 60000)

```

---

<div class="post-metadata">

**Author:** ![Brent\_Wassell](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@Brent\_Wassell](https://forum.inductiveautomation.com/u/Brent_Wassell)\
**Post date:** [March 26, 2024, 4:47pm UTC](https://forum.inductiveautomation.com/t/send-image-via-teams/75301/2 "2024-03-26T16:47:21Z")

</div>

Did you ever get this figured out?

How did you set up your webhook endpoint / are you sure it accepts images?

You might have do convert the image to a base64 code and transmit that and then have a decoder to turn it back into an image.
