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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
testinz
Posts: 105
Registered: ‎09-03-2012

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...

 

Please use plain text.
Developer
testinz
Posts: 105
Registered: ‎09-03-2012

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.
Please use plain text.