Question

How to send image File in the body of REST web service while sending post method?

  • 28 March 2022
  • 5 replies
  • 20 views

imagePlease share your knowledge or example with me.


5 replies

Userlevel 3
Badge +7

Hi @Pakpoom Poodsud​ ,

 

Could you try using the Package instead and pass in the filepath of the Image you want to post?

 

Kind Regards,

Ashwin A.K

Userlevel 4
Badge +8

Hi @Pakpoom Poodsud​ ,

 

Checkout below Meetup Recap on package usage that is shared by @Ashwin A.K​ .

 

https://developer.automationanywhere.com/blog/meetup-recap-working-with-apis-in-automation-360

 

Time Stamp : 36:51

Userlevel 4
Badge +8

Hi,

 

Change the content type to Multipart and browse the image as shown below.

 

Capture

Userlevel 4
Badge +8

Hi @Pakpoom Poodsud​ ,

 

Did you checked below tutorial?

 

https://developer.automationanywhere.com/blog/meetup-recap-working-with-apis-in-automation-360/p>

Please give more examples, as I am just an amateur. @Moxit Mehta​ 

 

 

Reply