Page 8 of 9

Camera to Database.

Posted: Wed Oct 23, 2013 9:04 am
by Maryna Brodina

Hello!
1) "//run your code here" means call your service to retrieve new data http://docs.appery.io/documentation/u...
2) "older operating systems running the app in a browser seem to fail at login" - there is a problem in android 2.x native browser - requests to DB don't work on in Android 2.x native browser, this is Android issue, but we're searching for workaround.
3) "call on the native camera service in the safari browser" - to work with camera you have to compile .ipa file and install app on device
4) "on iOS7 the pictures do not list horizontally as they should" - iOS7 is not supported yet, but we're working on it. Try to use CSS.


Camera to Database.

Posted: Wed Oct 23, 2013 5:38 pm
by Joe6207668

Hey Maryna,

Thanks for the detailed response!

Regarding "to work with camera you have to compile .ipa file and install app on device" - are you familiar with getUserMedia using html5?

For cross platform use:

window.URL = window.URL window.webkitURL;
navigator.getUserMedia = navigator.getUserMedia navigator.webkitGetUserMedia
navigator.mozGetUserMedia navigator.msGetUserMedia;

var video = document.querySelector('video');

if (navigator.getUserMedia) {
navigator.getUserMedia({audio: true, video: true}, function(stream) {
video.src = window.URL.createObjectURL(stream);
}, onFailSoHard);
} else {
video.src = 'somevideo.webm'; // fallback.
}

I would like to point the appery database IP address to my domain name and utilize a mobile web app until I can get approved in the App store, but I want to use native features including camera and geolocation.

Let me know what you think!

Thanks again for all the help, greatly appreciated!


Camera to Database.

Posted: Wed Oct 23, 2013 7:15 pm
by Kateryna Grynko

Hi Joe,

Mobile standard mobile browser don't support getUserMedia(), though take a look at the Capture API. http://docs.phonegap.com/en/2.5.0/cor...

As for the domain, do you mean this?http://docs.appery.io/documentation/p...


Camera to Database.

Posted: Wed Oct 23, 2013 8:24 pm
by Joe6207668

Hey Katya,

I'll take a look at the phonegap API.

And yes I as for the domain that is what I was referencing.

Thanks!


Camera to Database.

Posted: Thu Jan 02, 2014 9:10 am
by jbkarnes@hotmail.com

2) Create service camera_shot for CameraService
Map Response:

  • imageDataBase64 to Asset property "photopreview" component

  • imageDataBase64 to new localStorage variable "photo_buffer"

    and

  • Name to photoname_label.Text
    under 4)

    Could you elaborate a little. Didn't create a service called CameraService -


Camera to Database.

Posted: Thu Jan 02, 2014 9:24 am
by Oleg Danchenkov

"CameraService" - I believe it's mobilecamera1 service from 1) ... "add Camera device service -- mobilecamera1" ...
"photoname_label" - it's label created in step 1) ... "add Label to the last list item --photoname_label " ...


Camera to Database.

Posted: Thu Jan 02, 2014 9:04 pm
by jbkarnes@hotmail.com

Got it. should read Create Device named camera_shot for mobilecamera1. and mobilecamera1 is a camera service.


Camera to Database.

Posted: Fri Jan 03, 2014 4:35 pm
by Kateryna Grynko

Let us know if you need any help.


Camera to Database.

Posted: Mon Apr 07, 2014 5:41 pm
by CarmeloMilian

Once this photo is saved to the database, Can I get a record and display the image in the record results?


Camera to Database.

Posted: Mon Apr 07, 2014 8:56 pm
by Kateryna Grynko

Hi Carmelo,

Here is how to get a file from Database:
http://docs.appery.io/documentation/b...