[ardoHTTP] Binary Download

[ardoHTTP] Binary Download

  
Forge Component
(16)
Published on 30 Oct by Ricardo Silva
16 votes
Published on 30 Oct by Ricardo Silva

Is there a way to use the ardoHTTP module to retrieve binary files? The response is always Text and there is no option to get Binary Data.

GetRequest_Submit in HTTPRequestHandler returns BinaryContent. Unfortunately I have not found a way to add the Username and Password to this the way you can with HTTPGet in ardoHTTP.

Solution

Hi Steven. Have you tried using a REST service instead of the ardoHTTP? You can use basic authentication (although you need to construct the Authorization header), and you can map the output to a binary data.

Solution

Thanks Leonardo, that worked! I was able to get the binary file using a REST API call.