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.

DarkBASIC Professional Discussion / Load Media From the internet

Author
Message
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 30th Oct 2003 20:31
This command does not work with links, My idea was to look for file on disk if it does not exist the load image from the internet, save the image to disk.

This would eliminate the issue with loading media.

Anyone know how to do this?


load image "http://www.cnn.com/interactive/space/0107/moonwalk.gallery/03.earth.moon.jpg",1

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 30th Oct 2003 20:43
I thought you can only load a local media file

-RUST-
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Oct 2003 22:05
You can only load local media.

To get media downloaded automatically, you can use the ftp commands to do it.

There is actually a method to do a simple http file retrieval (using windows DLLs), but I can't remember it at the moment ... I'll try and find it.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 30th Oct 2003 22:07
I've got a plug-in that is designed to download file(s) from the internet (HTTP only at the mo.)


Avatar & Logo by Indi. Insert witty comment here...
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Oct 2003 22:58
Plug-ins? We don't need no stupid plug-ins
(Blazing saddles for those who didn't spot it)

I found the dll/function that does it. Try out the code below ... and as a bonus, it downloads three of my most useful plug-ins into the current folder
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 31st Oct 2003 00:23 Edited at: 31st Oct 2003 00:32
Ha! Mines got a progress bar and time remaining. Plus it can be set up to download from a list of servers if a file cant be found.


Avatar & Logo by Indi. Insert witty comment here...
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 31st Oct 2003 00:29
wasn't it "Badges, we don't need no stinkin' badges" from the animated movie Dirty Duck, circa 19-sixty-something

-RUST-
Genesis Rage
22
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 31st Oct 2003 00:35
@TCA
is there a plug-in you DONT have the only reason i havent used any of your plug-ins yet... sorry to say buddy... but your website is not that helpful...

i mean, it says some require other plug-ins and add-ons... but it doesnt tell you which ones it needs... not set up very user-friendly... better if it had name, description, and other things it needs

==Main Computer==
Athlon XP 3000+, 1024mb, Radeon 9800 Pro 128mb 8xAGP, XP Pro
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Oct 2003 00:43
@CattleRustler, I was paraphrasing ... and it was when Hedley was recruiting the mexican bandits, although I haven't seen Dirty Duck ... or heard of it
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 31st Oct 2003 00:47
no, I know...
I wasn't b*tching, just asking. seems there's alot of those:

"insert item here we dont need no stinkin' insert item here"

going around in movies and stuff. I wonder where the first one started?

-RUST-
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 31st Oct 2003 01:15
Thanks IanM

Please look at function it works on images
I could not find any unzipped objects

sound file loads to dir but does not play please review



System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 31st Oct 2003 09:53 Edited at: 31st Oct 2003 09:56
Quote: "is there a plug-in you DONT have "

Yes, I dont have one that makes tea.

Quote: "the only reason i havent used any of your plug-ins yet... sorry to say buddy... but your website is not that helpful..."

Ah, thats a shame.

Quote: "i mean, it says some require other plug-ins and add-ons... but it doesnt tell you which ones it needs... not set up very user-friendly... better if it had name, description, and other things it needs"

Because extra ones are only needed with the examples. I do also state that they generally all require the Memory plug-in at the very least (in addition to the ones the examples are assoicated with). I may add extra details about the plug-ins at some point in the future, but its not exactly a priority.


Avatar & Logo by Indi. Insert witty comment here...

Login to post a reply

Server time is: 2026-07-26 08:30:43
Your offset time is: 2026-07-26 08:30:43