How to save image to device gallery?
Question

Hi, 

We have a chat in our mobile app that allows users to exchange images. What component should we use to add possibility to save image to users device image gallery?

Thank you.

Solution

Hi Mykola,

I'm not sure that there's a component already, but you can create a plugin yourself and maybe make it available on Forge  .

I believe this is the plugin you need: https://www.npmjs.com/package/cordova-plugin-save-image

(here's a masterclass that explains how to create a plugin with P10: https://www.outsystems.com/learn/lesson/1185/using-cordova-native-plugins/)

hope that helps.

Vera

You may also want to take a look at this app:

https://www.outsystems.com/forge/component-discussions/2260/Social+Collaboration+Mobile

it doesn't have the feature you want, but it can work as a baseline to implement the new plugin.


Hi Vera,

Thank you for suggestion. 

Hi Mykola 

can you show me how you did it ?

for me I want to store an image taken using pluugingImage in the local storage 

Thank you 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.