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

Posts: 27
Registered: ‎03-27-2011
My Device: Z10,Q10,Z30
My Carrier: Verizon and ATT

Adding Contact picture from QImage or ImageData

Is there any way to add a Contact picture from QImage/ImageData while using ContactService.createContact()?


I am getting the image of a person from a URL, getting it displayed in the nativeapp,, giving an option to add to contacts. I could not find documentation about adding Contact picture from QImage/ImageData.


Any sample code will be really appreciated..

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

Re: Adding Contact picture from QImage or ImageData

you have to save the file in a shared folder, then use setOriginalPhoto with the filename.
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