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
martin78
Posts: 27
Registered: ‎05-15-2012
My Device: Dev Alpha B
My Carrier: Bell
Accepted Solution

Download image from a web URL

Hi,

 

I know that it is currently impossible to load a web URL into an ImageView. Has anyone successfully downloaded an image from a web URL to make use in an ImageView locally? Any quick way to do this? I am interested in implementing something like this;

 

Thanks!

 

Martin

 

------------------------------------------
Macadamian Technologies Inc.
http://www.macadamian.com/
Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Download image from a web URL

I believe that the Image class that makes up imageview has a constructor that takes a QByteArray which you can get from a web request/response
Like all of my posts
Please use plain text.
Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: Download image from a web URL

This might help you:

 

http://qt-project.org/wiki/Download_Data_from_URL



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
martin78
Posts: 27
Registered: ‎05-15-2012
My Device: Dev Alpha B
My Carrier: Bell

Re: Download image from a web URL

Excellent - thanks a bunch guys, I'll get to work on that :smileyhappy:

 

Martin

------------------------------------------
Macadamian Technologies Inc.
http://www.macadamian.com/
Please use plain text.
Developer
Dredvard
Posts: 160
Registered: ‎01-27-2012
My Device: Playbook
My Carrier: Rogers

Re: Download image from a web URL

Check out this link as well

http://supportforums.blackberry.com/t5/Cascades-Development/Will-ImageView-ImageTracker-support-web-...

---
If you find my post helpful please "like" it and "accept as a solution"
Please use plain text.