Download file in webapp?

Hi is there any way to download a file (image) in webapp using the image url?

I need to know this too

The only thing i figured out, was that you could achieve this by transforming the image or the file into base64 and then you could store that. But for the base64, even though there are online converters, i couldn’t find any as an api.

In my case, i had issues with cors policy and i couldn’t open the image in my app and the way i solved it, is by asking the guy from who i was getting the images to convert them first in base64.