Question

This is my code and i want to load image from the given URL please tell if there is any way .becasue this is not loading the image

 ImageView {

            imageSource: "http://upload.wikimedia.org/wikipedia/commons/9/97/Toda_Hut.JPG"
            preferredWidth: 610
            translationY: 70.0
            translationX: 70.0
            preferredHeight: 250
        }
Was it helpful?

Solution

BB10 Does not currently support a URL for an ImageView. There was mentions during the beta stage that it was coming but it is no longer listed on the roadmap.

--edit: As per Kernald - this feature is still in the roadmap.

Javascript does not support direct downloading of files which means you will have to implement some c++ if you want to accomplish this.

The best example of this is from one of the official examples here: https://github.com/blackberry/Cascades-Samples/tree/master/imageloader

You should be able to copy some of the c++ classes and implement it into your app without too much difficulty, even if your knowledge of c++ is weak.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top