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
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.)