Hi guys,
Is it still the case that I need to chunk larger files to download them from http/ftp or is it possible to somehow use a HTTP stream or similar to facilitate large file download?
Many thanks
Hi guys,
Is it still the case that I need to chunk larger files to download them from http/ftp or is it possible to somehow use a HTTP stream or similar to facilitate large file download?
Many thanks
You can stream, but that’s for a service that is returning chunks (eg see the twitter streaming implementation in the twitter library)
If you’re trying to pull down a large file in chunks via HTTP, you can add a range header to your fetch, like this:
http.get(source, {"Range":format("bytes=%d-%d", start, end)})
…due to HTTP session reuse, most likely the range fetches will be issued on the same connection.
Thanks Hugo, we’ll give it a try.
This topic was automatically closed after 60 days. New replies are no longer allowed.