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
Contributor
Posts: 46
Registered: ‎03-25-2011
My Device: Blackberry Z10
My Carrier: KPN

Showing image after downloading it

Hi,

 

can somebody tell me how to show a list of images that are downloaded from a webserver.

first thing i did download jsonfile from server ( contains all the urls to the images )

after that i downloaded all the images.. and now i don't know how to display them in a list or something to the user.

 

all the images can be found in the sandbox (data/images/filename1.gif, data/images/filename2.gif, and so on..)

 

thx

Developer
Posts: 100
Registered: ‎10-01-2012
My Device: BB10 Dev Alpha
My Carrier: Roger

Re: Showing image after downloading it

I put all images into

QDir::home().currentPath() + "/app/native/assets/images/vehicle.jpg"

 

Then you can get image in qml imageSource: "images/vehicle.jpg"

 

I have put into data folder before, but can not show on QML

Developer
Posts: 22
Registered: ‎03-05-2011
My Device: Not Specified

Re: Showing image after downloading it

http://supportforums.blackberry.com/t5/Cascades-Development/Download-Images-Dynamically/m-p/1945611#...

give it a try! just register the qml and after that instantiate the class in the qml, remember to get a default Image to show while waiting.