Skip to main content
Question

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

  • Mar 28, 2022 9:18 AM UTC
  • 6 replies
  • 440 views

imagePlease share your knowledge or example with me.

6 replies

Ashwin A.K
Forum|alt.badge.img
  • Navigator | Tier 3
  • Mar 28, 2022 9:04 AM UTC

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+11
  • Most Valuable Pathfinder
  • Mar 28, 2022 10:53 AM UTC

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+1

Hi,

 

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

 

Capture


Forum|alt.badge.img+11
  • Most Valuable Pathfinder
  • Oct 10, 2022 9:19 AM UTC

  • Author
  • Navigator | Tier 3
  • Oct 10, 2022 9:54 AM UTC

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

 

 


  • Navigator | Tier 3
  • Mar 19, 2023 10:25 AM UTC

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