Re: Dividing a file before to download it



Joshie Surber wrote:
^^^^^^^^^^^^^
Please provide attribution.
vvvvvvvvvvvvvvvvvvvvvvvvvvv
>> I need to download - randon size - parts of a file, not the whole file.
>
> You can not do this... especially not on a zip file.

Not true.

> You can stop your download partway through but then you will only have
> the first however many bytes. Downloads are not random access media.

However, for example most FTP servers and clients provide means of
resume which is essentially random access to that file resource.
(To be at least a bit on-topic:)

---------------------------------------------------------------------------
$ ftp anonymous@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Connected to sunsite.informatik.rwth-aachen.de.
220 Welcome to SunSITE CEUR
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/mirror/eclipse/S-3.2M3-200511021600
250 Directory successfully changed.
ftp> get eclipse-platform-3.2M3-linux-gtk.tar.gz
local: eclipse-platform-3.2M3-linux-gtk.tar.gz remote:
eclipse-platform-3.2M3-linux-gtk.tar.gz
229 Entering Extended Passive Mode (|||57355|)
150 Opening BINARY mode data connection for
eclipse-platform-3.2M3-linux-gtk.tar.gz (29718549 bytes).
27% |********* | 7836 KB 711.73 KB/s 00:29
ETA
receive aborted. Waiting for remote to finish abort.
426 Failure writing network stream.
226 ABOR successful.
8130784 bytes received in 00:11 (696.60 KB/s)
ftp> ^D
221 Goodbye.
ftp> open sunsite.informatik.rwth-aachen.de
Connected to sunsite.informatik.rwth-aachen.de.
220 Welcome to SunSITE CEUR
Name (sunsite.informatik.rwth-aachen.de:pelinux): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/mirror/eclipse/S-3.2M3-200511021600
250 Directory successfully changed.
ftp> restart 8130784
Restarting at 8130784 for next get, put or append
ftp> get eclipse-platform-3.2M3-linux-gtk.tar.gz
local: eclipse-platform-3.2M3-linux-gtk.tar.gz remote:
eclipse-platform-3.2M3-linux-gtk.tar.gz
229 Entering Extended Passive Mode (|||45064|)
350 Restart position accepted (8130784).
150 Opening BINARY mode data connection for
eclipse-platform-3.2M3-linux-gtk.tar.gz (29718549 bytes).
100% |*************************************| 29022 KB 714.23 KB/s 00:00
ETA
226 File send OK.
21587765 bytes received in 00:29 (714.22 KB/s)
ftp> ^D
221 Goodbye.
---------------------------------------------------------------------------

The OP's problem is best addressed with a download tool such as an
FTP client, not JS/ECMAScript.


PointedEars
.



Relevant Pages

  • Re: Wget "File size limit exceeded(core dumped)"
    ... The trick using ftp to continue the transfer seems to work: ... Using binary mode to transfer files. ... 150 Opening BINARY mode data connection for FC-5-i386-DVD.iso. ...
    (Fedora)
  • Re: itrc - H.P. I.T. Resource Center.
    ... >>Microsoft has had Windows Update to help administrators find patches. ... > Much prefer FTP to using any browser for downloads. ... <Opening ASCII mode data connection for file list. ...
    (comp.os.vms)
  • Re: FTP on IIS6.0 Not Working
    ... > 220 Microsoft FTP Service ... > 331 Password required for username. ... > 200 PORT command successful. ... > 150 Opening ASCII mode data connection for /bin/ls. ...
    (microsoft.public.inetserver.iis.ftp)
  • [VulnWatch] Multiple vulnerabilities found in PlatinumFTPserver V1.0.7
    ... PlatinumFTPserver simplifies management of all your Ftp clients with regards ... You can define what Ftp Commands the users or groups can access. ... 150 Opening ASCII mode data connection for /bin/ls. ...
    (VulnWatch)
  • Re: CSWS_JAVA v2.1 - wont unpack "war" files automatically
    ... you were 100% correct about the record format of the WAR file. ... Out of habit I had done the FTP upload of the WAR file in binary mode ... to unpack the WAR file the first time I referenced the webapp from a browser. ...
    (comp.os.vms)