I have a poster screen, and when I load images using pkg:// they load. However, I changed them to a web address, and now they won’t load. I confirmed through debug print that the path that the associative array is getting is correct, and confirmed in a browser that the path is correct.
Am I missing something here? Any thoughts?
Here’s where I’m setting the array:
for each item in json.Items
info = {
ShortDescriptionLine1: item.name
address: item.address
phone: item.phone
times: item.times
SDPosterUrl: item.SDPosterUrl
HDPosterUrl: item.HDPosterUrl
}
array.push(info)
end for
Thanks for any help anyone can offer.
Kenny
Can you provide a URL of one of the images that won’t load?
BTW, nice site Endless! Looks like you’ve been developing for Roku for a while!
I just tried a different image (a png), and it worked. So we are redoing our images as png. Any idea why jpg would not work?
I’ve found that jpegs saved with the “Convert to sRGB” option enabled in Photoshop can often cause problems, but I’d expect them to fail locally, too, if that were the issue. If you add an roSystemLog component to your channel, and listen for “http.error” events, that might provide some insight.
For what it’s worth, they load fine in a test channel on my end, so maybe there’s a typo in the URL in your code…?
That’s interesting. We converted one back to png, and it doesn’t load either. I know the path is correct, and have confirmed that another png which came with another sample app works fine when loaded from the same path on our server.
I’m not sure how to use the roSystemLog component. Could you post some example code to get me started? In the meantime, I’ll check the docs and learn about it. Thanks!!
Actually, the docs are very clear, so I think I can implement the log component… 
After putting the code in, I found it wasn’t doing anything. So I read more, and it says that it requires a certain design pattern to work. Namely, only one event loop in the whole app. My app has one event loop per screen, so based on that I can only assume that it will not work…
Oh, ok. Well there was only one loop running, but when I ran the app, nothing showed in the debugger. I had it set to print whatever message it received, if of type “roSystemLogEvent”. Any idea why nothing would show?
I had it in my code that displays a poster screen. The same section that is not displaying the images. That is the correct spot, right? I assume it is because the poster screen should be the one making the http calls for the images.
Do you mind if I email it to you?
I have confirmed that this image loads:
http://media.calvaryftl.org/api/ROKU/im … orship.png
while this one does not:
http://media.calvaryftl.org/api/ROKU/im … hd/web.png
Here is a code snippet. It has the HD image hard coded at the moment. When I changed it to the image worship.png, it worked:
if (request.AsyncGetToString())
while (true)
msg = wait(0, port)
if (type(msg) = "roUrlEvent")
code = msg.GetResponseCode()
if (code = 200)
array = CreateObject("roArray",10,true)
json = ParseJSON(msg.GetString())
for each item in json.Items
info = {
ShortDescriptionLine1: item.name
address: item.address
phone: item.phone
times: item.times
SDPosterUrl: item.SDPosterUrl
HDPosterUrl: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/web.png"
}
array.push(info)
end for
return array
endif
else if (event = invalid)
request.AsyncCancel()
endif
end while
endif
All your problem URLs work fine for me. Maybe the problem isn’t with the images themselves…
screen = CreateObject("roPosterScreen")
screen.SetListStyle("arced-landscape")
screen.SetContentList([
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/worship.png" }
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/web.png" }
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/sandalfoot.jpg" }
])
screen.Show()
Thanks for checking Chris. I don’t think it is either. It’s very odd how a different png will work across the web, but not the ones we created. I’m about ready to give up and just put them in the package. I’d love to not do that though to keep the package size down…
My results are the same as Chris’s. Both of your example images work fine for me both on the poster screen and the grid screen (directly referencing the URLs you posted), so that would suggest you have a problem elsewhere in your code.
Thanks again to both of you. Endless, I just emailed you my code. I hope you’ll be able to check it out for me and figure out what I’ve missed. 
CASE SENSITIVITY!
My server is on a Windows machine, so I didn’t realize that case matters. The roAssociativeArray is apparently case sensitive, so I had to make sure my paths matched perfectly with regards to case. Once I did that it worked!
Thanks for the help guys!
I hope this thread will help someone else down the road…