How to pick an image from gallery and show it on screen


#1

Hello, I´m begginer with mobile apps and I’d like to know how can I do to pick an image from gallery and show it on screen.
I don´t know the code in javascript to open gallery once I pushed the button, any help will be appreaciated. Thanks.


#2

Use cordova camera plugin and the
http://ngcordova.com/docs/plugins/camera/ wrapper

in the camera config you can set property

sourceType: Camera.PictureSourceType.CAMERA

to the photolibrary

after that you get a file url or Base64 url in the success callback. --> and you can show this via ng-src or ng-style in your template


#3

You can try these plugins also along with the cordova plugin.