Replies: 2 comments
-
You can use a simple overload of LinkedResource object that directly takes the file path as the parameter. So there is no need to explicitly load image into memory stream. Of course, this example assumes you have access to the image on the disk - Here is the complete function code which worked for me -
|
Beta Was this translation helpful? Give feedback.
-
It looks like you're trying to send a message with an image using a REST API in C#. From the code you've shared, it seems that you're using the RestSharp library to make the API call. There are a couple of things you can check to ensure that your code is working correctly: Verify that the URL you're using is correct and that it supports sending images. |
Beta Was this translation helpful? Give feedback.
-
Good evening guys,
I'm not able to send the message with the image with c#. I made the code following postman's example but it didn't work. My code is the one below, could you tell me if I'm doing something wrong? Thanks
var client = new RestClient("LINK_MY_SERVER/message/image?key=MY_KEY");
Beta Was this translation helpful? Give feedback.
All reactions