Skip to main content
Question

REST Get with returned Content-Type: application/octet-stream


Forum|alt.badge.img+1

Looking for some advice or suggestions using the REST Get with Content-Type: application/octet-stream.

I am using the REST Get action to download a file from a web application, the response from the web application streams the file in the response body, I am not having a lot of luck trying to pass the binary into a script to process so am wondering how others have typically handled this? Any advice on this is appreciated.

3 replies

Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 61 replies
  • June 20, 2024

https://botstore.automationanywhere.com/bot/get-post-file-package

The package also includes a GET method, with a built-in feature to save the response body to a preset target file location. 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 2 replies
  • June 21, 2024
Bot Dev wrote:

https://botstore.automationanywhere.com/bot/get-post-file-package

The package also includes a GET method, with a built-in feature to save the response body to a preset target file location. 

Thanks for the reply @Bot Dev. I did try that package but was getting errors and it doesn’t provide the full response to check the request, I will try this again and if I can get it working will mark your response as the answer.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 2 replies
  • June 24, 2024
R.apeople wrote:
Bot Dev wrote:

https://botstore.automationanywhere.com/bot/get-post-file-package

The package also includes a GET method, with a built-in feature to save the response body to a preset target file location. 

Thanks for the reply @Bot Dev. I did try that package but was getting errors and it doesn’t provide the full response to check the request, I will try this again and if I can get it working will mark your response as the answer.

 

No luck so far, normal GET works fine but I cannot use the response. This package only returns “Something went wrong with the request to 'uri'. Please check your inputs.”  making it very difficult to troubleshoot. I am using the exact same endpoint that works with the standard GET action


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings