1152
Views
3
Comments
Get Binary file from URL
Question

Hello,

I need to retrieve a binary file from an URL. For example, if I click on the following link, it will automatically download the file.  https://video.twilio.com/v1/Recordings/EXAMPLE/Media

I need to be able to get that file and save it on an entity. To get access to the file, it is required to input a Username and Password. I already tried two options:

1- with File_ReadBinary from FileSystem extension. I get this error: The given path's format is not supported

2- with GetRequest_Submit from HTTPRequestHandler extension and passed the Username and Password as arguments as you can see on the following image.  I get the following error: 401 Unauthorized


Any ideas on how to do this?

2022-03-03 22-15-30
Borislav Shumarov PhD
Champion

Hi André,

Is there any particular reason you are not using an integration to call the URL (REST/SOAP), but the FileSystem extension? I see the example URL could be called via REST.

2023-12-14 09-56-57
Yogesh Javir

Hey,

As i clicked on given link its throws exception 404 file not found.

If you want to achieve this scenario then i will request to use SOAP/REST api so output will get generate automatically in outsystem.

Once you make a call for that consumed api then it will come with some result then you can check result and make necessory action on it.

Hope you will understand.Direct aceccing image and read into application is not secure way.

Thanks

Yogesh

2022-03-03 22-15-30
Borislav Shumarov PhD
Champion

If you haven't checked it already, this is what you will need:

https://www.outsystems.com/training/lesson/1850/retrieving-data-from-a-rest-api-get

Cheers

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.