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

BlackBerry® Z10

New Contributor
Posts: 2
Registered: ‎02-06-2014
My Device: Z10
My Carrier: Vodafone

Unable to load .jpg image


I am trying to set .jpg image using bb10 api.

for e.g.

      QString image_url = "http://<host>:<port>/Documents/Images/test_image.jpg" ;

      ImageView* image = ImageView::create().imageSource(QUrl(image_url)) ;

      image->setVisible(true) ;


Something like this.


But it is showing me error,

"Unsupported scheme (http) used in url (http://<host>:<port>/Documents/Images/test_image.jpg). Image loading aborted." 


Can anybody tell me, what is the problem in above case? It works fine for .png.


Posts: 94,679
Likes: 24,430
Solutions: 6,357
Registered: ‎04-01-2008
My Device: Passport • Z30 • Z10 • Torch9850 • Playbook
My Carrier: Verizon

Re: Unable to load .jpg image

Welcome to the forums.


Just so you know, there is a proper dedicated Developer section of this forum for questions of this sort.



Please don't repost. I will ask a moderator to move this thread where it belongs.

>> NEW! 10% discount on BlackBerry devices from ShopBlackBerry.com, including PRIV

1. If any post helps you please click the Like Button below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4   Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA   Display/Scan Bar Code
New Contributor
Posts: 2
Registered: ‎02-06-2014
My Device: Z10
My Carrier: Vodafone

Re: Unable to load .jpg image

Smiley Very Happy okay! thanx.