Download a File from the Internet

BlitzMax Forums/BlitzMax Programming/Download a File from the Internet

William Drescher(Posted 2009) [#1]
I'm trying to download a text file that I have on my website, but I can't remember how to request the file from the site and then download the bytes from the web. Could someone please post an example for me or something like that? Thank you in advance.


Nate the Great(Posted 2009) [#2]
lol.. IDK about your problem but ur sig might be a bit over the top...

so basically you cant remember the url of said text file? I dont think there is anything you can do.


GfK(Posted 2009) [#3]
myImage:tImage = LoadImage("http::www.whatever.com/image.jpg") should do it, I think.

You should make your sig image smaller, because that's huge.


Brucey(Posted 2009) [#4]
Or perhaps :

LoadText("http::www.whatever.com/text.txt")


William Drescher(Posted 2009) [#5]
Sorry, for some reason it keeps resizing to that size, I'll make sure it stays small.

The problem isn't that I don't know the URL, I don't know how to get the file from the URL to my computer. I'll try the "LoadText" method and be back with the results.


BlitzSupport(Posted 2009) [#6]
This is Blitz3D code, but should be pretty easy to modify for Max:

EDIT: See below!


Brucey(Posted 2009) [#7]
Interesting link, Mr Boyd :-)


BlitzSupport(Posted 2009) [#8]
Doh!

http://www.blitzbasic.com/codearcs/codearcs.php?code=24