Wednesday, 15 September 2010

image - network.request invalid URL in Corona SDK -


I am working with Google developer resources to download images in my Coron SDK app.

As long as the URL is given, I am able to download the image. However, when I make the image ID a variable, I get the following error:

Invalid parameter: URL logic random url

This URL works:

  imgRequest = "https://drive.google.com/uc?export=download&id=xxxxxxxxxxxxxxxxxxxxxxxxxxxx"  

This URL is not:

< Pre> imgID = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" imgRequest = "https://drive.google.com/uc?export=download&id="..imgID

download it I use it:

  network.download (imgRequest, "GET", imgListener, "pic.png", system.Documents Directory)  

When i Print out the frustration comes both convergent URL and which has already been put together, and I get the same results would suggest to anyone to do next attempt?

Thanks in advance

I think there can be something else on the play; Can you provide the least work examples that display this issue?

I have tried both the URLs and I have not found any error on either of them. I am testing in Windows simulator using Corona Daily Build v2015.2576.


No comments:

Post a Comment