dcsimg
J2SSH - SFTPFile Error getting the file handle for SFTPFile
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amit_Mathur
Posted On:   Friday, July 8, 2005 08:03 AM

Dear Friends:
I am using the J2ssh API, I have written a java code to get an Sftpfile as:

sftpClient = ssh.openSftpClient();
List list = sftpClient.ls();
SftpFile sftpfile = (SftpFile) list.get(2);//get single SftpFile
SftpFileInputStream br = new SftpFileInputStream(sftpfile);


when I run, I get following error,
++++++++++++++++++++++++++++++++++++++++++
java.io.IOException: The file does not have a valid handle!


Can somebody help me out..
Thanks in advance !!!

About | Sitemap | Contact