Can't load image from URL (Why?)

Get help using Construct 2

Post » Sat Mar 04, 2017 10:19 am

Hi all,

I'm trying integrate web api ads. I get JSON response, for example:

Code: Select all
[{"adimageheight":768,"adimageurl":"http:\/\/addeals.s3.amazonaws.com\/campaigns\/pub8\/1024x768_hangman_test.jpg","adimagewidth":1024,"adtrackinglink":"http:\/\/ads.addealsnetwork.com\/AdDeals\/Tracking\/Redirect?aid=696&akey=0PIIO9XJOC6Z&oapi=1&fcp=1&deviceID=&advertiserUDID=USER_DYNAMIC_ADVERTISING_ID&dmodel=&os=8.1&cid=775&mop=&conn=CELLULAR_UNKNOWN&creativeID=264&usragent=&usrid=1&adw=1024&adh=768"}]

I parse this json with json plugin and get image URL ("adimageurl"), but I can't load image in sprite from this url, why?
But this image open in browser and can invoke download. How i can solve this problem?
B
12
S
3
Posts: 116
Reputation: 1,436

Post » Sat Mar 04, 2017 2:53 pm

Maybe someone has experience in the integration web ads?
B
12
S
3
Posts: 116
Reputation: 1,436

Post » Sat Mar 04, 2017 6:27 pm

I think this is link with Cross-Origin Resource Sharing policy. How can I get around this? But I could be wrong.
B
12
S
3
Posts: 116
Reputation: 1,436

Post » Sun Mar 05, 2017 9:14 am

up
B
12
S
3
Posts: 116
Reputation: 1,436

Post » Thu Mar 16, 2017 7:20 pm

up
B
12
S
3
Posts: 116
Reputation: 1,436


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 34 guests