Question

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

  • 20 June 2024
  • 3 replies
  • 77 views

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

Userlevel 2
Badge +6

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. 

Badge +1

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.

Badge +1

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

Reply