195
Views
8
Comments
How to save an image in my mobile local device after clicking picture?

I have a web app screen where the camera is opened when the clicks on the icon. Once the picture is clicked and user clicks on save it needs to be available in a folder. I have used a plugin called File Plugin specified the path but after clicking the image its not storing in my device.

Down below is the thing I have tried


How do I solve this issue? 

2024-09-19 13-52-30
Kavinilammurugu (Kavin)

Hi Bhargav, 
I have faced this scenario before. The files will be stored in Internal Storage.

For Example: In the below image I have configured the action to save the file in Download folder. 

The files can be found under the following path
This PC\<Your Phone>\Internal shared storage\Android\data\<your app identifier>\files\Download

But by default the Camera Plugin, have Save Image option. You just have to set the SaveToPhotoAlbum property to True

UserImage.jpg
bhargav venkatesh

Hi 

I have tried as you specified and there is nothing inside my Android > data folder. Down below is my attached oml file

FileViewer.oml
2024-09-19 13-52-30
Kavinilammurugu (Kavin)

Hi Bhargav,

Please find the attached OML File for your reference.

FileViewer.oml
UserImage.jpg
bhargav venkatesh

Thank you so much this worked a lot.


2024-09-19 13-52-30
Kavinilammurugu (Kavin)

Hi Bhargav, 
I'm glad to know that issue is solved . 

UserImage.jpg
bhargav venkatesh

I am furious to know whether it can be used in PWA

2024-09-19 13-52-30
Kavinilammurugu (Kavin)

Not possible to access device internal storage to write files using FilePlugin 


UserImage.jpg
bhargav venkatesh

Thank you. I am trying to load the image which i have clicked using the file viewer plugin. I have created a button and tried the below but could not see the image.

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