1. Andres Slachevsky
  2. PowerServer 2020 or older (Obsolete)
  3. Monday, 30 December 2019 11:23 AM UTC

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?

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 10 July 2020 02:29 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Andres,

For how to use image SDK, please refer to attached PB case.

Regards,
ZhaoKai

Attachments (1)
Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Monday, 30 December 2019 13:38 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Hello Andres,

after you take a picture, you can reduce its size using the eon_mobile_imageex object from workaround pbl.

  • set resize options in eon_mobile_str_imageoption structure
  • reduce size by calling of_createimagewithoptions()

 

Best regards,

.m

Comment
  1. tomms tomms
  2. Tuesday, 7 July 2020 08:16 AM UTC
Hello Marco,



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

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.