Skip to main content
Question

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

  • March 28, 2022
  • 6 replies
  • 372 views

Forum|alt.badge.img+5

imagePlease share your knowledge or example with me.

6 replies

Ashwin A.K
Forum|alt.badge.img+10
  • Navigator | Tier 3
  • March 28, 2022

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


Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • March 28, 2022

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


Forum|alt.badge.img+12

Hi,

 

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

 

Capture


Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • October 10, 2022

Forum|alt.badge.img+5
  • Author
  • Navigator | Tier 3
  • October 10, 2022

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

 

 


Forum|alt.badge.img+5
  • Navigator | Tier 3
  • March 19, 2023

how did you salve it? I’m going through the same issue