Results 1 to 1 of 1
- 09-01-2008, 05:46 PM #1
Member
- Join Date
- Jul 2008
- Posts
- 67
- Rep Power
- 0
Problems with ftp, commons library
I am really stuck now by using ftp. I am using commons library and some other jars which are needed for commons.
Currently I made, also took some code from tutorial site the ftpLayer so it would be easier to connect and some other things.
So i follow this schema: connect, login - when start upload download set the passivemode on, binary for transfering, get the stream(Input or Output), close the I/o and then ftp disconnect.
Problem: This schema works for when i am working with one, but i wanted to upload and download many files. But when used this schema it sometimes work and sometimes not. But there's really big flaw in my transfer process. When use for many times transfer scheama is
nextfile: <- this label like you have seen it in some BASIC code
loop starts
connectlogin
passivmode on
binary on
start upload
i/o close
ftp disconnect
GOTO nextfile
//////////////////////////////////////
but when i used, got error, this solution should be right
nextfile: <- this label like you have seen it in some BASIC code
connectlogin
passivmode on
binary on
loop starts
start upload
i/o close
GOTO nextfile
ftp disconnect
Similar Threads
-
How to make Apache Commons (StringUtils etc...) work with Eclipse?
By chrvi in forum New To JavaReplies: 3Last Post: 01-29-2012, 10:44 AM -
org.apache.commons.mail.EmailException: Cannot find valid hostname
By Ed in forum Advanced JavaReplies: 3Last Post: 07-25-2011, 03:19 PM -
Using jakarta-commons threadpool (Tomcat) through JNDI
By zrrbite in forum Advanced JavaReplies: 0Last Post: 12-14-2007, 12:47 PM -
Commons Library Framework 0.8.0
By JavaBean in forum Java SoftwareReplies: 0Last Post: 10-02-2007, 04:13 PM -
Commons validator
By aczuczor in forum Web FrameworksReplies: 0Last Post: 07-27-2007, 08:46 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks