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
Developer
testinz
Posts: 183
Registered: ‎09-03-2012
My Device: Blackberry 10

Reference image source in data folder?

[ Edited ]

Hello,

 

Just wondering how do you reference an image that located in your data folder?

 

The path in my app folder is data/files/photo/P0IMG_00000059.jpg

 

This is how I reference it in Image View (which doesn't work):

 

ImageView {
                imageSource: "data/files/photo/P0IMG_00000059.jpg"

                                         // "/data/files/photo/P0IMG_00000059.jpg" and "assets:///data/... do not work
                horizontalAlignment: HorizontalAlignment.Center                
                scalingMethod: ScalingMethod.AspectFit
            }

 

 

full ftp path:

 

ftp://169.254.0.1/../../../accounts/1000/appdata/com.blah.testtestDev__test970dd689/data/files/photo...

 

Developer
testinz
Posts: 183
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: Reference image source in data folder?

Is this a bug or data folder is not accessible as imageSource?

Thank you for taking a look.