Skip to main content
Question

How to download an API's response, when the response is not text but an image/pdf

  • August 1, 2025
  • 3 replies
  • 49 views

Forum|alt.badge.img+1

How to download an API's response, when the response is not text but an image/pdf

 

Customer tried exploring the Base64 technique, however we are unsuccessful at it. 

3 replies

abhay_naik
Forum|alt.badge.img+2
  • Cadet | Tier 2
  • August 1, 2025

Hi ​@Hiren Savla,

The output that you would get will be the URL of the image/pdf. You can use that URL and put it in “Download file” action in the Browser action package. This will get your file.

Thanks


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • August 1, 2025

Yes ​@abhay_naik that works well for GET requests. For POST requests ​@Hiren Savla see the checkbox in the REST Web Service: POST method for saving files including PDFs. This method works with most if not all POST file requests. 


Shreya.Kumar
Pathfinder Community Team
Forum|alt.badge.img+14
  • Pathfinder Community Team
  • October 7, 2025

@Hiren Savla if either of the above recommendations helped, please feel free to mark a best answer!