Hello All,
we have a working mobile app that capture a picture and save it to the database (using the appeon_workspace.pbl)
it works with no problems we have only one issue we can not control the resolution of the picture and in same cases the image taked is huge and take a long time to be save to the database and when need it upload to the application.
we found out the it was cause by the settings of the phone (the camera used and resolution of the picture)
is any way to compress the image or change the resolution from the PB app?
i try like this below , but can't take picture , nothing happen what wrong this script problem ;
eon_mobile_str_cameraoption lstr_option
eon_mobile_cameraex ln_camera
eon_mobile_str_imageoption astr_imageoption
eon_mobile_str_imageinfo astr_imageinfo
eon_mobile_imageex image
String ls_filepath,named,ls_wo_no
long ll_return, ll_w, ll_h,ll_rowid,ll_cnt,ll_rowid_wono,ll_return2
lstr_option.i_filetype = 1 //Fotografía
lstr_option.b_allowedit = true // Editar foto después de tomarla
ln_camera = create eon_mobile_cameraex
ll_return = ln_camera.of_takefile (lstr_option, ls_filepath, lb_data )
astr_imageoption.i_quality = 3
astr_imageoption.i_loopstep = 3
astr_imageoption.i_imagetype = 0
ll_return2 = image.of_createimagewithoptions(lb_data,ls_filepath,astr_imageoption, ref astr_imageinfo )
Regards,
Nasrullah