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

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Contributor
Posts: 3
Registered: ‎02-17-2010
My Device: none
My Carrier: none

Camera control

Can the camera be controlled (picture or video capture) by using the web based approach?  Once that is done I then need to forward that on to a server.  Can both of these tasks be accomplished by using the web method?

Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Camera control

Hi There,


From a BlackBerry Widget you can launch the camera application using the Invoke JavaScript API.  After the user has taken a picture you can then upload it to your web server using a standard mult-part file upload form submit.


Right now you will have to search for the picture they have taken using the file IO JavaScript API to then upload it.


Widget JavaScript APIs can be found here:



We are working on a more simple "takeAPicture()" function that would just return you the file path of the picture they took, but it is not completed yet.


Alternatively you could wrap the Java camera APIs and use them in your widget.  A lab showing how to wrap a Java API for your widget can be found here:


Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Posts: 19
Registered: ‎06-28-2010
My Device: n/a
My Carrier: n/a

Re: Camera control

Has this new "We are working on a more simple "takeAPicture()" function that would just return you the file path of the picture they took, but it is not completed yet." been implemented yet?