Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4k views
in Java FTP by (160 points)
I've been trying to download a >2GB file using ssh.SSHFTPClient and is encountering this error:

java.io.IOException: Value too large to be stored in data type.
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.readFile(SftpSubsystemClient.java(Compiled Code))
at com.enterprisedt.net.j2ssh.sftp.SftpFileInputStream.read(SftpFileInputStream.java(Compiled Code))
at java.io.InputStream.read(InputStream.java(Compiled Code))
at com.enterprisedt.net.j2ssh.SftpClient.transferFile(SftpClient.java:504)
at com.enterprisedt.net.j2ssh.SftpClient.get(SftpClient.java:605)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.get(Unknown Source)

I'm using the get(outputStream, remotefilename) method to do this. Is there another way of downloading a large file without encountering this error.

Thanks.

3 Answers

0 votes
by (162k points)
Interesting. 64-bit integers are used as offsets in j/pro, so the size shouldn't be a problem.

Could you email a log file to support at enterprisedt dot com? Set it to ALL level, and since it will be a large file, chop out most of it - just leave the first few 50Kb and the last 50Kb. And please zip it up before sending.
0 votes
by (160 points)
I've sent the log file this morning. Please reply back if you didn't receive it.

Thanks.
0 votes
by (162k points)
Thanks. I can see this line in the log file:

DEBUG [SshFxpStatus] 27 Mar 2008 23:53:54.217 : ErrorCode|Status=4

This means the server is sending back an error message, so I suspect this message is from the server.

Are you sure that your server supports > 2 GB files? Looks like VanDyke's VShell, so worth confirming if that is the case.

It would be a good idea to try Filezilla to transfer the file and see if you get the same error.

Categories

...