This is for a mobile app. I need to save an image/binary to the internal storage of the device then the image has to show up in the default gallery or photos app of the device upon saving.
I've been scouring the forge asset list for anything that could do this, but I can't find any. I thought this was a simple functionality since most apps out there could easily do this. The usual problems I encounter has to do with security or permissions and not being able to access the root Download or Pictures folder. I also played around using javascript code, but I can't get anything to work.
Please help, I'm stuck. 😓
Hi
please check with the bellow forge component
https://www.outsystems.com/forge/component-overview/3707/save-to-gallery
Hope It will helpful
Thanks
Sudarshan HD
Thanks for the reply but
The Save to Gallery plugin no longer works in the latest version of android and iOS.
Hello DaVince
You can use this Forge component to download binary data and convert it into an image that is viewable in the mobile gallery.
https://www.outsystems.com/forge/component-overview/16040/download-file
Regards
Nikhil kumar vijay
Hi Nikss,
Thank you. This almost does the job, it's just that this just opens up the native file save dialog. For Android, this is fine. But for iOS, any saved image, even saved locally, still won't show up in the photos app.
Most mobile apps today just allows you to save the image (directly accessible to the gallery/photos) with no additional prompts/steps.
If you are using an iOS device, you can save an image to your gallery by manually saving it. After downloading the image, make sure to save it to your device's gallery. On the other hand, if you are using an Android device, the image will automatically be saved to your device's gallery.
thanks @Nikss
it is usefull .
On iOS, there is only the option to save in iCloud drive, On My iPhone, and Downloads. Saving an image in any of these will still not show up in the Photos app.
Unless OutSystems implements integration with PhotoKit, I guess I'm out of luck.