In this tutorial, you’ll learn how to download images in a native mobile app. By using the Download File activity, your app can open and save images directly to the device’s storage. This allows users to easily download and access pictures on their phone.
I have this domain model, and some images are already available in the database with synchronized.you must synchronize the data to ensure it’s saved permanently.

Go to the Utility page & take a button, give the name Download Image.

Double click on Download Image button -> In onClick events select call a nanoflow & create a new nanoflow(ACT_DownloadImage).

Open ACT_DownloadImage nanoflow & take a Retrieve activity, Retrieve your first image object from Picture entity. You can download dynamic images, for this tutorial I am just downloading the first image from DB.

Now Take Download File activity.

Open Download File activity & pass Picture object and in the Open with OS parameter set true/false accordingly.

Now run the application & test it.

When you click the Download Image button, your device will ask where to save the image.

Conclusion:
I hope this article has helped you understand How to Download Image In Mendix Native App.
Thanks for reading this! See you in the next blog post.
