Questions tagged [ftp4j]

"The ftp4j library implements a Java full-features FTP client. With ftp4j embedded in your application you can: transfer files (upload and download), browse the remote FTP site (directory listing included), create, delete, rename and move remote directories and files." -- Sauron Software

The ftp4j library implements a Java full-features FTP client. With ftp4j embedded in your application you can: transfer files (upload and download), browse the remote FTP site (directory listing included), create, delete, rename and move remote directories and files.

Source: http://www.sauronsoftware.it/projects/ftp4j/index.php

40 questions
3
votes
1 answer

ftp4j read timed out after upload file

I am receiving a weird exception during file upload (using ftp4j library) from a specific workstation. After file has uploaded (100%) i receive a read timed out exception. Here it is: 2015-03-20 18:14:43 INFO TranferFileFtp4j:760 - FTP Server…
thanili
  • 777
  • 4
  • 26
  • 57
3
votes
0 answers

Connecting to FTP server through HTTP proxy

I'm using it.sauronsoftware.ftp4j to connect to an FTP server over the internet on port 21. I'm connecting through a HTTP proxy, so I'm using the HTTPTunnelConnector. I am able to connect and login to the FTP and set the mode to passive without…
Jakob K
  • 31
  • 1
  • 3
3
votes
1 answer

edtFTPj Java Error when retrieving directories

I want to connect to a FTP Server, in this case FileZilla Server, with Java. I've download edtFTPJ/free and I've been trying the examples that they sent in that package. Connecting to the server, deleting folder/files, renaming, creating folders…
2
votes
2 answers

FTP4j fails to use FTPES (TLS session of data connection has not resumed or the session does not match the control connection)

I am trying to use ftp4j lib to get list of files from FileZilla FTP servcer with TLS. import it.sauronsoftware.ftp4j.FTPClient; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSocketFactory; import java.io.FileInputStream; import…
Limmy
  • 697
  • 1
  • 13
  • 24
2
votes
0 answers

Connect to FTP Server via FTP Proxy

I try to poll files from a ftp server using ftp4j. My application runs behind a Squid Proxy, so I use HTTPTunnelProxyConnector to connect to the proxy. But when trying to connect, it throws the following exception: java.net.SocketException: Can't…
2
votes
1 answer

Multiple threaded ftp upload

I am trying to understand how to use ftp4j to do a multiple threaded upload. From the documentation it says that I can use multiple connections to upload different pieces of the file but how do I control what order they get reassembled on the…
Codeguy007
  • 891
  • 1
  • 12
  • 32
1
vote
3 answers

Recursively list files and directories in an FTP server using Java

I'm currently using a Java FTP library (ftp4j) to access a FTP server. I want to do a file count and directory count for the server, but this means I would need to list files within directories within directories within directories, etc. How is this…
John Smith
  • 11
  • 1
  • 2
1
vote
1 answer

Java GZipInputStream unexpected end of ZLib input stream

For reference, here is the complete error I am getting: java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) at…
ragoolaman
  • 11
  • 1
  • 4
1
vote
1 answer

What permissions do i need for a java ftpclient?

I'm new in java and I'm working on an android app that connects to a ftp server .I'm having problems because i don't know exactly what permissions do I need to add to AndroidManifest.xml .I also have problems because I can't get it to connect to the…
zacumbot
  • 13
  • 3
1
vote
0 answers

Failed to open file when downloading from ftp using ftp4j

I'm writing a program that needs to download files from an FTP, I'm using ftp4j for this, but have run into a problem. I can connect to the FTP and initiate the download however after a couple of seconds I get an error.…
user2320239
  • 1,021
  • 2
  • 18
  • 43
1
vote
2 answers

Result of .renameTo() is ignored

I am trying to upload a file via FTP, but before it is uploaded it has to be renamed to the input of 2 editText's. To do this i use the following code: public FTPClient client = new FTPClient(); public void upload_klik (View view) { …
Harjan
  • 533
  • 1
  • 6
  • 24
1
vote
0 answers

socket time out in ftp4j for FTP connection using http proxy

I am using ftp4j jar for ftp client i have used HTTP tunnel connector because my FTP server (open VMS server) is behind HTTP proxy. basic commands like PWD , NOOP , CWD are working fine , but if i try to LIST & NLIST a directory or STOR a file…
1
vote
0 answers

ftp4j java ftpClient manage connection failures during file upload

I am trying to implement an ftpClient interface which would be able to manage network connection issues. I am using the ftp4j library for this purpose. I can succesfully upload files BUT i have some issues when a connection failure appears during a…
thanili
  • 777
  • 4
  • 26
  • 57
1
vote
1 answer

Error connecting to FTP server using ftp4j in android

I get this error exactly when I use client.connect(FTP_HOST); I have standard ftp connection and using the default port 21 anyone can help me find what is the cause of this problem? thanks it.sauronsoftware.ftp4j.FTPClient…
asmgx
  • 7,328
  • 15
  • 82
  • 143
1
vote
1 answer

using ftp4j to connect using FTPES to IBM MVS OS/390 server

I am trying to connect FTPES server (IBM MVS OS/390), when trying with ftp4j I am getting PASS failed exception when using their example code it.sauronsoftware.ftp4j.FTPException [code=530, message= PASS command failed] I tried using python as well…
madhut
  • 11
  • 2
1
2 3