by
johnmunro >> Wed, 6 Aug 2003 10:30:21 GMT
We do pretty much what Allistar suggested - open the source file with usePresentationFileSystem set to false and the destination with it set to true, then just loop a chunk of file at a time doing this:
fileDest.writeBinary(fileSource.readBinary(iBufferLength));
The optimal size of the chunks you read/write in will depend mostly on the speed of your connection, and trial&error seems to be the only way to work it out.
--
John Munro
Synergist Limited - Home of FileVision(TM)
The Bioscience Innovation Centre
Cowley Road, Cambridge, UK
CB4 0DS
Telephone: +44 (0) 1223 478200
Fax: +44 (0) 1223 477969
Email:
john.munro@filevision.com
Web:
http://www.filevision.com
The contents of this communication are confidential and are only intended to be read by the addressee. We apologize if you receive this communication in error and ask that you contact Synergist Limited immediately to arrange for its return. The use of any information contained in this communication by an unauthorized person is strictly prohibited. Synergist Limited cannot accept responsibility for the accuracy or completeness of this communication as it is being transmitted over a public network. If you suspect this message may have been intercepted or amended, please inform Synergist Limited.