Possible Duplicate:
Downloading files without using Import
While attempting to answer my own question I realized that I don't know a way to simply download a binary file to a specified folder with Mathematica, bypassing any Import/Export processing.
One can Import as "Binary" but this uses several times the amount of memory that the file takes to store. Further, the entire file must be loaded into memory and then processed with Export. Is there some way to pipe or stream the file as it is downloaded directly to disk?
One solution would be if it were possible to directly OpenRead a URL and access the file as a stream, and/or read only a specified byte range within the file. Neither of these are apparently possible with the native tools. Perhaps a JLink program can be made that would allow similar functionality? What would that entail? (I don't write Java and therefore rarely use JLink.)
curlorwget:) – rm -rf Oct 03 '12 at 07:09"Pages"option inExport, but seems like I'm using the wrong syntax. Will ask if I make no headway in a few days – rm -rf Oct 03 '12 at 07:37Run. The added advantage of wget is that you can download from URLs with cookies and logins etc. – Mike Honeychurch Oct 03 '12 at 08:38