commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36473] - [Net] FTPClient.storeFile keeps returning false on XP only, stores nothing to FTP server
Date Tue, 31 Jul 2007 10:49:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36473>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36473





------- Additional Comments From shashidhar.mishra@aricent.com  2007-07-31 03:49 -------
I read the comments below.
I have double checked The FileInputStream and  it is correct and the file size 
is also not zero. But still when I am transferring the file to some Windows 
machine the storeFile is returning false.

The code snippet: 
File local = new File(localFile); 
if (local.exists()){ 
          in = new FileInputStream(local); 
          if (ftpSession.storeFile(remoteFile, in)) { 
                      System.out.println("file transferred"); 
             } 
             else{ 
                      System.out.println("file cannot be transferred"); 
             } 
} 

The remoteFile and the the local fileName are correct. Still the storeFile 
method is returning false. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message