Hi Community,
I have URL in response from an API which can be used to download a file but, when I open this URL it starts downloading in local PC but I want its binary in service studio.
Please help me out.
Thanks!
Hi Veena,
Please try this project.
Thanks AWL!
Can you share the OML ?
Thanks AWL
Hi Ashish,
Sorry It's in company's environment, I won't be able to do that.
please check this thread, It is very similar
https://www.outsystems.com/forums/discussion/75806/get-binary-file-from-url/
This is not working for me.
Any alternatives ?
It's not clear to me what you want. You write "when I open this URL it starts downloading in local PC but I want its binary in service studio", but what exactly did you do? What code did you write "open the URL"? Also, you say "I want the binary in Service Studio", but Service Studio is a design-time tool, not the run-time environment, so what do you mean?
Hi Veena
In the HTTPRequestHandler extension, there is an action called GetRequest_Submit. If you provide it with a download URL it returns the data as Binary Data. If your URL immediately downloads to your PC then put that URL in this action and it will return the Binary Data.
Hope this solves your problem
Hello Veena L
If understood your question correctly then
you can use the "HTTP Request" action from the "HTTP" module.
Steps
Note that downloading binary data can take up a lot of memory and bandwidth, so you should be mindful of the size of the files you're downloading and the impact it may have on the performance of your application
Note : In this project, from the API response you can extract binary file if you don't want to use in the download widget.
This worked for me.