V7.1 - Mobile camera not saving image in AIM BO

If you think that something doesn't work in Aware IM post your message here
Post Reply
softserv
Posts: 93
Joined: Mon Aug 01, 2016 12:52 am
Location: Jaipur, India
Contact:

V7.1 - Mobile camera not saving image in AIM BO

Post by softserv »

We have a requirement to take a photo using mobile camera and save in AIM BO in mob application. We have watched the video related to mobile application. Please see below the approach that we are following and let us know whether it is correct or not.

Approach:-

1. We made a BO ‘Customer’ and added this user in System User.
2. We made a process ‘TakePhoto’ with following rules:-
i) MOBILE CAMERA SNAP INTO LoggedInCustomer.Photo
ii) VIEW LoggedInCustomer

As per ‘UserGuide.pdf’ document, “MOBILE CAMERA SNAP INTO” action opens a camera on a mobile device that the user logged in from, allows the user to take a photo and then writes the result into the specified Picture attribute of the specified business object. Note that this action can only be used in native mobile applications – it will not work in a browser. In our example ‘Customer’ is a BO and ‘Photo’ is a picture attribute of ‘Customer’ BO.

3. We have created an APK as described in section “Building native mobile applications” in ‘Mobile Applications.pdf’.
4. Once logged into the application, we are able to invoke mobile camera (by calling a process on a button) and are able to click a photo using phone camera.
5. The problem is that the clicked photo is not getting saved in AIM BO.
6. After some debugging we found following error (see attachment):-
7. After further debugging on error, we replaced “commons-fileupload.jar” file with “commons-fileupload-1.3.3.jar” and “commons-io-2.5.jar” files.
8. We completed step no. 4 again after replacing files.
9. Now, clicked photo is getting saved in AIM BO.

So, we have following questions:-

1. Is this the correct solution to the problem?
2. Where else are these jar files being utilized?
3. Will replacement of these jar files impact any other functionalities in AIM?
4. Has anyone else encountered the above mentioned problem? If so, what was the solution implemented?
Attachments
Mobile_camera.png
Mobile_camera.png (65.94 KiB) Viewed 4813 times
Team SoftServ

V8.3 2628 |V8.2 2574 |V8.1 2475 | V8.0 2372 | V7.1 2240 | V6.0 2042 | V5.9 1894
MS SQL Server | MySQL
AWS | Azure | Google Cloud

Image
SoftServ - AwareIM
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: V7.1 - Mobile camera not saving image in AIM BO

Post by aware_support »

In version 8.0 build 2346 the problem is fixed and it is using the latest version of the fileupload.jar
Aware IM Support Team
Post Reply