esha sharma

Greenhorn
+ Follow
since Jan 02, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by esha sharma

i have tried using retrieveFileStream()....and then copied the stream using copyStream() method....but i hv noticed that its blocked and doing nothing (not even giving any error message) because it is waiting to read next byte from InputStream. As it is not getting anything from inputstream so its waiting....Please let me know, if anything could be done in this situation...
Thank you!
************************source code***********************

************************end of source code***********************


1) The zip contains files, using these files I am updating some tables.

2) do you control the FTP server hosting the file?
No I do not.

3) What do you know about it's configuration?
I do not have other information except host name, user name, password.

4) Can you access the FTP sites logs to see if there is an error, warning, or message?
No I cannot access.


5) What happens when you try to download the file with a traditional FTP client?
I have tried downloading that file through FTP Client software; I can download everything without any problem. I have noticed that file size is different while using both procedures (using program and FTP Client software).

6) Do you catch exceptions and log them?
Yes, I do. No exception no error message. It does not do anything. Like stuck in infinite loop.

7) Is it just one particular ZIP file that causes the problem or all ZIP files above a certain size?
When I try to download another zip file with smaller size, first, it does not download complete file. Second, when I try to open that zip file, it gives error message, “Error: Unexpected end of archive file”. And when I try to unzip that file I get another error message “file is corrupted.”
All the other files (which are not zip files) on FTP server are below 22MB, so I am not sure about that.

Thank you!

JCE: Please Use Code Tags
thank you for the reply.
Joe, before coming to this forum i googled for this problem...but could not get any answer to solve this problem..
So I thought i might get some answer here...
I would like to elaborate the problem...
I am trying to retrieve a zip file from FTP server and the size of zip file is apx 67MB. For that I am using org.apache.commons.net.ftp.FTPClient class. Everytime it fetches that file till 22MB and stuck there...it does not do anything and program stuck there...
please let me know if i am doing something wrong...the same code works fine if i retrieve any othere file...
one more question, is there any limitation for file size?
please let me know, is there anything that i need to mention here?
thank you
here is the problem
I am trying to retrieve a zip file from FTP server and after retriveing few MB of data (aprx 22MB) it hangs and doesnt move further... the same code works fine for another files except zip file...
i m using ftpclient.retrieveFile(filename, fos)
where filename is name of the file that i m trying to retrieve...n fos is FileOutputStream....
any help would be appreciated..
[ January 02, 2009: Message edited by: esha sharma ]
here is the problem
I am trying to retrieve a zip file from FTP server and after retriveing few MB of data (aprx 22MB) it hangs and doesnt move further... the same code works fine for another files except zip file...
i m using ftpclient.retriveFile(filename, fos)
where filename is name of the file that i m trying to retrieve...n fos is FileOutputStream....
any help would be appreciated..
[ January 02, 2009: Message edited by: esha sharma ]