Store images in iOS and Android gallery

What is the best way to do it?
My app is making some images and upload it to the server, after that users can watch it in the app. But i need to make some of them to store in local mobile device gallery, maybe in separate folder… User just click ‘save’ and image downloads from external url to device gallery.
A lot of googling not helps me )