Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

ImagePicker.MediaOriginalImage

Queries the original image.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ImagePicker 7.3 No No No No Yes

MBS( "ImagePicker.MediaOriginalImage" { ; ImageType; FileName } )

Parameters

Parameter Description Example value
ImageType Optional
The image type to return.
Can be png or jpeg.
"jpeg"
FileName Optional
The file name to include in container value.
"test.jpg"

Result

Returns OK 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

Example Databases


ImagePicker.MediaIsVideo   -   ImagePicker.MediaPath

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins