Forum

Mathieu Roll
Keymaster
    Has successfully completed the online course Introduction
    Has successfully completed the online course Intermediate (200)
    Has successfully completed the online course Advanced (300)
    Has successfully completed the online course Basics (100)
6 years ago #18195
Up
0
Down
::

Hello Julia,

for Desktop and iOS you can use this Code.

$(sap.ui.getCore().byId(“Create_Image–ui_unifed_FileUploader”).FUEl).trigger(“click”);

On Android this doesn’t work because google is blocking it and you will only get an error messge saying.

“File chooser dialog can only be shown iwth a user activation.”

 

An other way to create and read pictures is by using the mobile action (Capture Image).

The Mobile Action is giving back a FileUrl and with the Client Side Business Object SIMP_FileHelper and the Function readFileByUrl you can read the Image.

It is giving you back the blob and base64 for the Image with the given FileUrl.

If you do not have the Business Object you can download it from Here

Note: The Mobile Action can only be used with our Simplifier Mobile Client for iOS nad Android