摘要 |
A system, a method, and an article of manufacture for near real-time transfer of a datafile from a first computer to a second computer. The system comprises a first computer connected to a second computer over a computer network. These computers are operated such that on the first computer a server side script, responsive to a download request from the second computer, operable to launch an httpstreamproducer and to read and write data over the computer network. The httpstreamproducer operable to read a designated source file and simultaneously write data from the source file into a return-data-buffer connected to the server-side script and a read-while-write mechanism allowing the httpstreamproducer to read data from the designated source file while the designated source file is being written by a data producer program. The second computer a transaction handler class, each instance of which is operable to read and write data produced by an httpstreamproducer over the computer network and to write blocks of data to a destination simultaneously with receiving data from the computer network. |