Capture Phone Photo (OpenInsight 32-bit)
At 13 MAR 2020 08:30:38PM cmeyer wrote:
Hi All,
I have a client who would like to capture a Photo on a mobile phone (Android/IOS) by selecting a Job (OI data) then storing the image in the designated folder on the server.
Does anyone have any idea how to tackle this and is it possible for the OI application on the phone to have access to the camera and the photo image.
Any advice would be grateful.
Chris
At 14 MAR 2020 09:09AM Donald Bakke wrote:
Hi All,
I have a client who would like to capture a Photo on a mobile phone (Android/IOS) by selecting a Job (OI data) then storing the image in the designated folder on the server.
Does anyone have any idea how to tackle this and is it possible for the OI application on the phone to have access to the camera and the photo image.
Any advice would be grateful.
Chris
Yes, this is possible. We are doing this and it is even a part of our demo app that we showcased in the 2016 Revelation User's Conference: https://mobile.srpcs.com/contacts/
The "how" question can vary based on your approach to this. There will be two components. First will be the front end development. Our demo app implements this using a pure web stack (i.e., HTML5/CSS/JavaScript) but we also have apps doing this that were written with native mobile tools. In the end, you are accessing the device APIs for the Camera and Photo apps. Are you going to (or intend to) use O4W? If so, there might be some ready samples for you to use.
The second component will be the web API on the backend. Again, O4W might have some sample code that will get you kick-started. We use our own REST framework for web APIs, but the end result roughly the same. We recommend that the client convert the image data to Base64 so it will be easier to transfer and you can then store it as such or decode it and write the file to a local folder.