Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

ImagePicker.MediaOriginalImage

Queries the original image.

Component Version macOS Windows Linux Server iOS SDK
ImagePicker 7.3 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "ImagePicker.MediaOriginalImage" { ; ImageType; FileName; WithEXIF } )   More

Parameters

Parameter Description Example Flags
ImageType The image type to return.
Can be png or jpeg.
"jpeg" Optional
FileName The file name to include in container value. "test.jpg" Optional
WithEXIF Pass 1 to include metadata in image.
Default is 0 for no metadata.
0 Optional

Result

Returns container value or error.

Description

Queries the original image.
If no image is available, we return empty result.

Examples

Store image:

If [ MBS( "ImagePicker.HasMedia" ) ]
    New Record/Request
    Set Variable [ $Image ; Value: MBS( "ImagePicker.MediaEditedImage"; "PNG") ]
    If [ IsEmpty ( $image ) ]
        Set Variable [ $Image ; Value: MBS( "ImagePicker.MediaOriginalImage"; "PNG") ]
    End If
    Set Field [ ImagePicker::Picture ; $image ]
    Commit Records/Requests [ With dialog: Off ]
End If

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 17th June 2017, last changed 9th November 2021


ImagePicker.MediaMetadata - ImagePicker.MediaPath