Download a file through HTTP
BlitzMax Forums/BlitzMax Programming/Download a file through HTTP
| ||
Has anyone downloaded files from a HTTP server with a Max program? |
| ||
Yes. |
| ||
Okay then. |
| ||
There must be commands in the help. I did it in BPlus but the commands probably aren't the same. |
| ||
wouldn't this work?LoadBank("http::www.somedomain.com/myFile.doc") never tried it, but I've seen it posted for loading images off the internet. |
| ||
Doesn't the readstream example do this? |
| ||
Yep, this is working, thanks...Local Bank:TBank Local Result:Int = 0 Bank = LoadBank(RemoteURL) If Bank = Null Then Result = 0 Else SaveBank(Bank, LocalURL) Result = 1 End If |
| ||
A simple search would have saved you a 4 hour wait. |
| ||
Now get off our lawn! |
| ||
I did several searches. The search functionality of the forum sucks, that's all there is to it. It's very difficult to find anything. More to the point, I'm sorry, but "LoadBank" is not exactly an intuitive name for a command that can load a file from a URL. |
| ||
... |
| ||
More to the point, I'm sorry, but "LoadBank" is not exactly an intuitive name for a command that can load a file from a URL. How about OpenStream or LoadImage? All I/O commands can load files from http, ftp or filesystem sources. |