Re: [JSch-users] ScpTo flushing the outstream while copying

2013-04-20 Thread Prakash Babu
Hi Atsuhiko, thanks for the quick response. This issue does no happen on Unix Platforms. This happens intermittently when I copy files(around 250 MB) to Windows platforms eg. Window 2K12 PS: On the Windows hosts , sshd is configured using Cygwin. Im fine with using the same example ScpTo ( http

Re: [JSch-users] ScpTo flushing the outstream while copying

2013-04-20 Thread Atsuhiko Yamanaka
Hi, +-From: Prakash Babu -- |_Date: Sat, 20 Apr 2013 20:35:12 +0530 __ | | while(true){ |int len=fis.read(buf, 0, buf.length); |if(len<=0) break; |out.write(buf, 0, len); //out.flush(); | } | fis.close(); |I am facing i

[JSch-users] ScpTo flushing the outstream while copying

2013-04-20 Thread Prakash Babu
Hi, I am using the scpTo example @ http://www.jcraft.com/jsch/examples/ScpTo.java == // send a content of lfile fis=new FileInputStream(lfile); byte[] buf=new byte[1024]; while(true){ int len=fis.read(buf, 0, buf.length);