[Save To Gallery] Problem saving image to gallery on Android 10
Question
save-to-gallery
Forge component by Leonardo Fernandes

Hi,

I am trying to save an image on device's photo gallery using the Save To Gallery plugin and giving all the right permissions (Write/Read_External_Storage), however this only works for Android versions below 10.

On Android 10 this error occurs:

"An exception occured while saving image: java.io.FileNotFoundException: /storage/emulated/0/img_2020516164720.png: open failed: EACCES (Permission denied)".


Does anyone know how to solve it?

Thanks!

Hi Bruno Dias,

Judging from the Github repo, I don't think there will be any support for newer versions of Android. Have you tried the File plugin forge component? It has a `SaveFile` action that accepts Binary data, name and path as parameters.

Good luck!

Regards.

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