Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Issue with GetHTTPFile()

Author
Message
ApkGames.Guru
11
Years of Service
User Offline
Joined: 25th Oct 2013
Location: England, UK
Posted: 14th Oct 2019 17:05
Hi all. I'm downloading an image file from a website. Everything is fine when this is run via Windows... it downloads and displays the image. However, when the same code is broadcast to player for IOS or Android.... I get a blank image... even though the GetHTTPFileComplete() has indicated it has retrieved ok and the file check made.

Having looked through the forums, I see a little on where the download image is stored. Not sure if there is a difference between Window and ISO/Android and I should be making an allowance in this when download... but I would of expected this to have worked on all platforms with the coding I have.

Has any come across this and found a way to have this working on IOS/Andoid to? Variable Resp in the following code is returning a 1. I also check for when the file exists and if both conditions are true, I progress and show the image.



Cheers, Ian.
ApkGames.Guru
11
Years of Service
User Offline
Joined: 25th Oct 2013
Location: England, UK
Posted: 14th Oct 2019 17:30
Hmm, the above simplified version actually works However, this therefore must mean there is a limited of the filename length and windows allows more compared to IOS\Andoid. Oh well, a change of approach needed.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 14th Oct 2019 23:00
the above code couldn't/wouldn't retrieve the image on neither windows nor android (via broadcast) until i preceded it with a forward-slash "/".

IE:

GetHTTPFile(Http, "gamegraphics/logo.png, "logo.png","")

needed to be:

GetHTTPFile(Http, "/gamegraphics/logo.png, "logo.png","")

(which, i think, is a curious "logo")

Quote: "this therefore must mean there is a limited of the filename length"


what is the "long" URL?

Login to post a reply

Server time is: 2024-11-22 17:03:05
Your offset time is: 2024-11-22 17:03:05