Article View: borland.public.jbuilder.java.api
Article #2943Re: FTP a file to host
From: Hans Georg Frey
Date: Tue, 23 Jun 1998 00:00
Date: Tue, 23 Jun 1998 00:00
40 lines
1760 bytes
1760 bytes
Hi All, I had the same problem and I decided to use FTP. I found a good source on http://www.afu.com That source works with text files, but there ar a only a few changes to make it work with binaries. I think the greatest problem in generall is the network not how to transfer. 100 MByte files takes a litle time to transfer. Why do you want to transfer your data line by line. Why don't you tread your file as a binary and read it block by block. Be sure which size of block your Application can handle and write it to the socket. Let the transfer protocol (TCP) do the rest. It's the job of your network Protocoll to find the best size for a transfer. By Hans Georg Frey Binh Tran wrote: > > Hi All > > I am new to the Java environment and not quite sure where to look.. > > I am looking for an API that will enable me to ftp a file to the host. > This file is quite large. > Is there a quick way to do this? I want to use the API to do the job as > it maybe quicker.. > The only way I could think of now is to read the file line by line and > ftp it to the host, this could takes hours to transfer a moderate size > file... (the size of ifle could be 100 MB).. > > Binh.
Technical Details
Message-ID:
<358FE622.3FB@she.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35772FF1.995C203@usa.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,3599d21fdba21014 X-Google-Attributes: gid1089d0,public From: Hans Georg Frey <hfrey@she.de> Subject: Re: FTP a file to host Date: 1998/06/23 Message-ID: <358FE622.3FB@she.de> X-Deja-AN: 365364119 Content-Transfer-Encoding: 7bit References: <35772FF1.995C203@usa.net> To: Binh Tran <jetball@usa.net> Content-Type: text/plain; charset=us-ascii Organization: ShE Mime-Version: 1.0 Reply-To: hfrey@she.de Newsgroups: borland.public.jbuilder.java.api