Skip to main content

All Questions

Tagged with
1 vote
1 answer
609 views

Java Apache FTPClient most downloaded files are empty or missing

This is my code that is supposed to download entire FTP directory to a local folder. It does it well, but most of the files are 0KB in size. Only JSON files seem to contain all their data. Things I ...
green's user avatar
  • 13
0 votes
0 answers
282 views

Some downloaded files are missing bytes (Apache Commons FTPClient) [duplicate]

This is a continuation of my other question because I noticed that other file types are affected too (not only images). My Android app (Java 8, min SDK 24, target SDK 27) downloads images (jpg,png) ...
Neph's user avatar
  • 1,941
0 votes
3 answers
168 views

Why does the FTP download not work properly with Java

i'm currently working on a small checklist builder program in Java. I would like to upload and download the created file to my FTP Server (ftps). I'm using the following code for downloading: public ...
AkEgo's user avatar
  • 23
0 votes
0 answers
35 views

Problems with download files from different directories with FTP library Apache Commons

I'm working on an application which download images from a FTP server, I'm using the library: Apache commons. What I want to do is download every image from a tree of directories like this: -iTable ...
Jack Moe's user avatar
1 vote
0 answers
71 views

How can I prevent a large and frequent FTP download from ruining my entire internet connection?

After following this tutorial(http://www.codejava.net/java-se/networking/ftp/how-to-download-a-complete-folder-from-a-ftp-server), and also programming the same thing in Python, both of the programs ...
Nexion21's user avatar
  • 149
0 votes
1 answer
665 views

FTPClient Java speedup download

What is the max download-speed with 1 thread of apaches FTPClient? I'm not able to get more, than about 6mb/s with an FPTSClient connection (AUTH SSL). When i connect via an Ftp Tool like FTP Rush im ...
PinkyTV's user avatar
  • 118
0 votes
2 answers
2k views

java ftp - download from guest account on server without login name or password

I am trying to download a file from a server. The server has a guest account without a login or password. The code was adapted from http://www.dreamincode.net/forums/topic/32031-ftp-in-java-using-...
scs's user avatar
  • 567
0 votes
2 answers
2k views

Android FTP download pause/resume

I'm working on an Android project that requires FTP download to be paused/resumed. Here is the code I use for FTP connection: ftpClient.setConnectTimeout(25000); ftpClient.login("login", "password");...
android.dev's user avatar
1 vote
1 answer
490 views

Unable to download txt file from ftp server in Android

I'm trying to download from ftp server in my android app but when i create the local file i can't write in. Here the code: String servidor = ips[0]; int reply; ftp....
Xavi's user avatar
  • 67
0 votes
2 answers
2k views

Very slow FTP download

I'm downloading a file from a FTP account using a self written function: private boolean download(String path, Path target) throws IOException { FileOutputStream fos = new FileOutputStream(target....
principal-ideal-domain's user avatar
0 votes
1 answer
171 views

Inconsistent output from multithreaded FTP InputStreams

I'm trying to create a java program that downloads certain asset files from an FTP server to a local file. Because my (free) FTP server doesn't support file sizes over a few megabytes, I decided to ...
Rheel's user avatar
  • 420
-1 votes
1 answer
186 views

Download to folder/files android apps

my problem is that I use in my practice are pdf files. I did not add them into my application. I want pdf files from ftp or a URL to download it. I have no idea about the solution. I've tried a lot ...
Gökhan Tebrizcik's user avatar
0 votes
1 answer
596 views

Download part of file from FTP server using `FTPClient`

Is it possible to download only a part of a file from my FTP server using FTPClient? This part should by specified by two long values m and n meaning "starting from byte m untill byte n. Is such a ...
principal-ideal-domain's user avatar
1 vote
2 answers
7k views

File Download from a FTP Server using apache FTPClient

I am using apache's FTPClient to download files from a FTP server. My scenario is - the FTP server can loose network connectivity and may remain disconnected for a max of 1 day. When it connects back, ...
Anirban's user avatar
  • 589
0 votes
1 answer
178 views

Downloading files from FTP

I'm trying to download files from FTP on Java using org.apache.commons. try { OutputStream os = new FileOutputStream(downloadedFile); boolean success = this.client.retrieveFile(from, ...
ibm701's user avatar
  • 305

15 30 50 per page