Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Adds a photo to the saved photos album.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ImagePicker 7.3 No No No No Yes
MBS( "ImagePicker.WriteImageToSavedPhotosAlbum"; Image { ; FileName; ScriptName; Parameter } )   More


Parameter Description Example value
Image The image container to add to photo roll.
FileName Optional
The file name for the script.
ScriptName Optional
The script name for the trigger.
Parameter Optional
The script parameter to use.


Returns OK or error.


Adds a photo to the saved photos album.
The work is done in background and we can optionally trigger a script when done.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.


Add image to saved photos:

If [ IsEmpty ( ImagePicker::Picture ) ]
    Show Custom Dialog [ "No image?" ]
    Set Variable [ $path ; Value: MBS( "ImagePicker.WriteImageToSavedPhotosAlbum"; ImagePicker::Picture; Get(FileName); "AddedToCameraRoll" ) ]
End If

See also

Example Databases

Created 17th June 2017, last changed 20th June 2017

ImagePicker.VideoIsCompatibleWithSavedPhotosAlbum   -   ImagePicker.WriteVideoToSavedPhotosAlbum

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins