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.

Newcomers DBPro Corner / is there someway to download via http in darkbasic pro?

Author
Message
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 4th Apr 2005 03:59
is there someway to download via http in darkbasic pro?
Krad2004
19
Years of Service
User Offline
Joined: 8th Mar 2005
Location:
Posted: 4th Apr 2005 04:40
this was in the code base:



and if you change the url$="www.darkbasic.com" to the file URL the u might be able to download.

i havn't tried it tho!!!

hope this helps
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 4th Apr 2005 04:59 Edited at: 4th Apr 2005 04:59
I'm not sure this will work out, i cant specify where to download the file, and i want it to happen seemless. Anyone else who can help? Is there some dll around that could help me?
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Apr 2005 06:29
There you go.



Boo!
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 5th Apr 2005 03:14 Edited at: 5th Apr 2005 03:14
aw, thanks
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 5th Apr 2005 03:33
Spooky: the way you showed med crashes the program. It downloads the file just fine. But when i access the file it crashes the program

So far i've used an external util to download the file with (and called with "execute file". And when accessing the file in the exact same way i did after downloading with your function, it doesnt crash. I find it pretty weird.
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 5th Apr 2005 04:02
Strange...i havnt used it for big files yet only jpegs but its worked nicely over here!
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Apr 2005 04:26
Strange indeed. I use similar code in my highscore routine for my games to update online table with php, and I get no problems. Been running now for many months and noone has complained game has crashed.

Maybe your code that is accessing the downloaded file is at fault.

Not that I'm passing the buck or anything.

Boo!
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 5th Apr 2005 05:03
Actualy, another thing im intereted in is progress. Is there any way to see how far the download has progressed ?
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 5th Apr 2005 06:03
Spooky. The file is accessed in the EXACT same way after using your routine or the other external way im using now. So i dont think anything is wrong with my code. But it only crashes after downloading the file your way.

Its weird.

Login to post a reply

Server time is: 2024-09-23 17:31:06
Your offset time is: 2024-09-23 17:31:06