Hi Andres,
Please use the eon_mobile_cameraex::of_openalbums function to open the album for the user to select a photo or video, for more details please refer to:
https://www.appeon.com/support/documents/appeon_online_help/2017/workarounds_and_api_guide/ch01s04s04.html
And please use the Appeon file service to help to upload/download file, for more details please refer to:
https://www.appeon.com/support/documents/appeon_online_help/2017/workarounds_and_api_guide/ch01s03s04.html
For example:
appeonfileservice lappeonfileservice
Long ll_retVal,ll_port
String ls_url,ls_ip,ls_password,ls_username
string ls_import_file_name, ls_filename
int li_last_pos
eon_mobile_cameraex leon
leon = create eon_mobile_cameraex
string ls_file
leon.of_takefile(1,true, ls_file)
//leon.of_openalbums(ls_file)
destroy leon
ls_import_file_name = ls_file
if ls_import_file_name = '' then
Messagebox("file service", "Please select a file to upload.")
return
end if
//messagebox('1', ls_import_file_name)
// upload file to server -start
lappeonfileservice = CREATE appeonfileservice
IF ( IsValid( lappeonfileservice ) ) THEN
ll_retVal = lappeonfileservice.of_logonfileserver( '192.168.168.18', 80, "username=userA;password=userA" ) //172.25.28.39 - mykul420
IF ( ll_retVal <> 0 ) THEN
MessageBox( 'File server error', 'Could not connect to file server !!!~r~nOperation aborted !', StopSign!, OK! )
ELSE
lappeonfileservice.of_appeonupload( ls_import_file_name, '', false, ll_retVal)
IF ( ll_retVal <> 0 ) THEN
MessageBox( 'File server error', 'Could not upload the attached document to file server !!!~r~nOperation Aborted !', StopSign!, OK! )
ELSE
ll_retVal = lappeonfileservice.of_logofffileserver()
IF ( ll_retVal <> 0 ) THEN
MessageBox( 'File server error', 'There was an error while disconnecting from the file server !!!~r~nOperation Aborted !', StopSign!, OK! )
END IF
END IF
END IF
END IF
DESTROY lappeonfileservice
BTW, comparing to PB, the Appeon application can support the "Picturename property is an Internet URL" for picture/picturebutton/picturehyperlink control ,Also, the property"display as picture" and "bitmap" function of the Datawindow can support Internet URL.
For example:
p_1.Picturename = "http://192.168.168.18/apk/test.jpg"
pb_1.Picturename = "http://192.168.168.18/apk/test.jpg"
phl_1.Picturename = "http://192.168.168.18/apk/test.jpg"
Regards,
ZhaoKai
it must connect to a FireBird DB so the solution was to create a WebService and use the WebService in the Mobile App