• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

retrieveFileStream method of FTPClient is not working for long files

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using retrieveFileStream method of FTPClient. I am using more than one file, but for small files it is working fine but when I am processing large files (like size of 90 kb or greater) then after processing first file it throws FTPConnectionClosedException.
I have chacked isConnected of FTPClient it returns true just before executing retrieveFileStream.
I have also checked getReplyCode which is returning 226 for both (at the time of first and second file)

ftpFileStream = ftp.retrieveFileStream(fileNameList[fileCnt]);

I would appreciate any help given by you.


-----------------------------------------------------
Another thing not related to my topic is that whenever I post a topic, I receive the response but after that it show lock on my topic and I am not able to ask other question related to that topic and not able to say even Thanks to that person who replied.
-----------------------------------------------------
Thanks in Advance,
Kishan Kant
 
Ranch Hand
Posts: 83
Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post the complete code, we need to understand what you are trying to do in the code. If its a code problem always try to post the code which has issue, this helps people answer quickly.

You can not reply to a post if the topic is closed. Read FAQs sections for more details of forum guidelines.
 
Kishan kant
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sachin,

Thanks for your quick response, but i found the solution using the approach in the link:
http://www.koders.com/java/fid68842E09297E44C70E8523066857A2E9F1566507.aspx?s=ftp+client#L17

Thanks and Regards,
Kishan Kant
 
reply
    Bookmark Topic Watch Topic
  • New Topic