in reply to Fetch URL Contents to File Handle
I need to download a very large zipfile containing thousands of records, and print the first ten records ... Is there a way of downloading into a filehandle or pipe so that I don't have to download the entire large file?
A ZIP file's central directory is at the end of the file. Although you could get fancy with range requests, it might be easier to actually download the whole file. How big is "very large"? Update: Even though 10MB isn't that big for a daily download, it turns out to be much easier to use the site's API.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Fetch URL Contents to File Handle
by pmqs (Friar) on Jun 10, 2020 at 12:31 UTC | |
by haukex (Archbishop) on Jun 10, 2020 at 20:12 UTC |