Save image from url

How can I save image which is loaded in Image component by url, I dont want to give repeat download request for saving the image already visible to user.
Reason- to save time and data

1 Like

Use this extension
https://community.kodular.io/t/f-os-image-loader-extension-for-image-loading-and-caching/69381?u=shivam_yadav1

1 Like

Are you loading the image from a web url?

yes, directly in image component.

yes, directly in image component.

How about downloading the image from the same URL into the local (device) storage?

if you load it directly, it will freeze your app until it loads completely, i suggest you to use image utilities component to load your image synchronously and to download/save that image, simply set download url to image url which you’ve loaded and start downloading it : )

1 Like

I suppose this is all you need:

AIA: ImageLoadAndDownload.aia (10.3 KB)

Extension used: Extension to download file(s) to ASD (app-specific directory) without WRITE permission

Image used here:

https://images.unsplash.com/photo-1621192754911-ffe0d95929dd?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=677&q=80

Cheers!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.