Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

How to select the image through gallery or camera?

Hi

I want to upload an image to the server and for uploading the image the user has to choose the image either through gallery or capture image through camera.

So, how to add these features into my app?

Developer
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to select the image through gallery or camera?

use a file picker
https://developer.blackberry.com/cascades/reference/bb__cascades__pickers__filepicker.html
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to select the image through gallery or camera?

I am asking in BB OS 7???

Developer
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to select the image through gallery or camera?


vaishali28 wrote:

I am asking in BB OS 7???


Then why do that on the Cascades forum?

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to select the image through gallery or camera?

Seriously Sorry..