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

Java Development

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

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: 354
Registered: ‎06-05-2013
My Device: Blackberry Z10
My Carrier: Vodafone

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

Read File Picker Demo Example from Blackberry Examples
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

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

Hi how to i edit the image ??

I have used a bitmap field to show an image. Now i want that when i click the bitmapfield i get the option to edit the image by selecting the image through gallery or capture image.??

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

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

Is it possible to edit the BitmapField ???

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

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

"Is it possible to edit the BitmapField ???"

 

It is possible to edit the Bitmap associated with a BitmapField - actually to be more accurate it is possible to create a new Bitmap with changes and replace the Bitmap displayed in a BitmapFIeld with another one.

 

What sort of edits are you thinking off?

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

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

Hi

Actually i have displayed an image through BitmapField.

Now what i want when i click the bitmapField i got an option to edit the image and add the new image to the bitmapfield.This image can be taken either from the gallery or capture through camera

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

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

Hi Peter

If it is possible to edit the BitmapField, then how to edit it??

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

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

Any reply???

Its urgent....

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

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

"Its urgent...."

 

I recommend you review this:

http://www.catb.org/esr/faqs/smart-questions.html#urgent

 

You haven't answered my question:

"What sort of edits are you thinking off?"

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

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

Edit in the sense when the user clicks the label field it gets two option

1. edit image by adding any gallery image

2. imnage capturing through camera

So based on the selected option user chooses the new image gets placed to the bitmapfield.