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

New Contributor
Posts: 5
Registered: ‎07-04-2013
My Device: Z10
My Carrier: Vodafone

EXIF in Cascades

Hey guys,


I want to read EXIF data of an JPEG image in my Cascades app, I tried to do that with with a library called libexif from Native libraries collection for BB10, but couldn't succeed. I'm a newbie to C/C++ language, so firstly I find it little hard to use C/C++ libraries with Cascades.


I'm using this example from the library.



but I get stuck at this function exif_data_new_from_file(path). No matter what path I put into this function it doesn't load the image/data. I have a jpeg image called sample.jpg in my assets folder where we put our QML files.


Have you guys tried something like this before? I'll appreciate any working examples or any help.



New Contributor
Posts: 5
Registered: ‎07-04-2013
My Device: Z10
My Carrier: Vodafone

Re: EXIF in Cascades

No one has ever tried this library? Or Have I posted this in the wrong section? Should I post to in Native Development forum?

Please guys, I need some help here. Thanks!
Posts: 101
Registered: ‎12-02-2012
My Device: Z10 LE, PlayBook 32GB
My Carrier: Beeline

Re: EXIF in Cascades

There are samples of using EXIF lib in cascades.

For example: https://github.com/blackberry/Presentations/tree/master/2012-BlackBerryJam-Americas/JAM15/FlashPhoto

As for exif_data_new_from_file function: in what format do you pass path to it?

It should be char*. Cascades uses QString, witch can be converted with:


My BB10 apps: Photo Memo | TriQuick | SkidStone | MeeBirthdays
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post.