Note that there are some explanatory texts on larger screens.

plurals
  1. POincomplete ftp of file
    primarykey
    data
    text
    <p>Believe it or not, but this is my first time trying to build an ftp client to automate the process within a program. So far everything has worked out great until now. I have a text file with abnormally long lines. Without counting is about 2 or 3 screens wide, not a smartphone screen but a 15.4". The issue is the ftp uploads but cuts all the lines short. They all appear to be cut short after the same amount of characters per line. I'm using jscape. Looking at the api for just the ftp, there is a setTransferBlockSize. I tried manipulating that and it doesn't appear to make any difference. Here are the basic methods I'm using:</p> <pre><code>public String Connect() { FtpException connected; String message=""; try { // connect to FTP server ftp.connect(); ftp.setReceiveBufferSize(BUFFER_SIZE); ftp.setSendBufferSize(BUFFER_SIZE); System.out.println("Connected to "+this.hostname+" ; Username = "+this.username); ftp.setAscii(); //System.out.println("Present working directory(conn) - "+ftp.getDir()); } catch(FtpException e) { connected=e; e.printStackTrace(); message=connected.toString(); } return message; } public void SetRemoteDirectory(String remoteLocation ) { try { ftp.setDirUp(); ftp.setDir(remoteLocation); System.out.println("Present working directory(remdir) - "+ftp.getDir()); //ftp.getDirListingAsString(); } catch (FtpException e) { e.printStackTrace(); } } public void UploadDataset(String _localFile, String _remoteFile, int _blockSize) { try { System.out.println("Locale File: "+_localFile); System.out.println("Remote File: "+_remoteFile); ftp.setBlockTransferSize(_blockSize); ftp.upload(_localFile, _remoteFile); } catch(FtpException e) { e.printStackTrace(); } }//UploadDatset </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload