ftp

How to connect to FTPS server with data connection using same TLS session?

北战南征 提交于 2021-01-18 04:46:23
问题 Environment: I'm using Sun Java JDK 1.8.0_60 on 64-bit Windows 7, using Spring Integration 4.1.6 (which internally appears to use Apache Commons Net 3.3 for FTPS access). I'm attempting to integrate with our application an automatic download from our client's FTPS server. I've done so successfully with SFTP servers using Spring Integration without any trouble for other clients without issues, but this is the first time a client has required us to use FTPS, and getting it to connect has been

Can connect to FTP using FileZilla or WinSCP, but not with FtpWebRequest or FluentFTP

可紊 提交于 2021-01-15 10:07:37
问题 I am trying to open an FTP connection over SSL in my code. I'm able to connect and list a directory using FileZilla of WinSCP. But when listing the directory through .NET code using FtpWebClient , I get the error (425) Can't open data connection Since I'm able to connect using FileZilla from the same computer, I'm not sure how to go about troubleshooting this. Here's my code public void FtpStuff() { string url = "ftp://my.server.com"; FtpWebRequest request = (FtpWebRequest)WebRequest.Create

Can connect to FTP using FileZilla or WinSCP, but not with FtpWebRequest or FluentFTP

孤者浪人 提交于 2021-01-15 10:05:11
问题 I am trying to open an FTP connection over SSL in my code. I'm able to connect and list a directory using FileZilla of WinSCP. But when listing the directory through .NET code using FtpWebClient , I get the error (425) Can't open data connection Since I'm able to connect using FileZilla from the same computer, I'm not sure how to go about troubleshooting this. Here's my code public void FtpStuff() { string url = "ftp://my.server.com"; FtpWebRequest request = (FtpWebRequest)WebRequest.Create

ftp文件上传和下载

◇◆丶佛笑我妖孽 提交于 2020-12-31 03:59:37
1.配置 首先需要导入jar包jsch.jar public class FileConfig { /** * SFTP操作文件服务器配置部分 * @author tian */ public static String SFTP_Host="192.168.**.**";//主机 public static String SFTP_Username="**"; public static String SFTP_Pass="****"; public static int SFTP_Port=22;//端口 public static String SFTP_UploadPath="/usr/data/img";//SFTP上传的远程主机文件路径 public static String tempFilePath="/usr/local/temp";//附件上传,下载,暂存路径 } 2.实现方法 public class FileSFTP { private String host;//主机 private String username; private String password; private int port;//端口 private ChannelSftp sftp = null; private Session sshSession = null; public

I want to access files located on a FTP server and display it in my app

梦想与她 提交于 2020-12-30 03:48:00
问题 I want to access files located in a folder on the FTP server by giving ftp's hostname and display it in my app which is developed using the android studio. It should be dynamic, that is it should reflect all the changes done inside the folder of which I have given a specific URL, that is if something is deleted or inserted, it should be reflected in the app. I am unable to connect to FTP server and my app crashes. Below is the code of my app. Please have a look at the code and help me out.

I want to access files located on a FTP server and display it in my app

无人久伴 提交于 2020-12-30 03:44:52
问题 I want to access files located in a folder on the FTP server by giving ftp's hostname and display it in my app which is developed using the android studio. It should be dynamic, that is it should reflect all the changes done inside the folder of which I have given a specific URL, that is if something is deleted or inserted, it should be reflected in the app. I am unable to connect to FTP server and my app crashes. Below is the code of my app. Please have a look at the code and help me out.

I want to access files located on a FTP server and display it in my app

半世苍凉 提交于 2020-12-30 03:43:52
问题 I want to access files located in a folder on the FTP server by giving ftp's hostname and display it in my app which is developed using the android studio. It should be dynamic, that is it should reflect all the changes done inside the folder of which I have given a specific URL, that is if something is deleted or inserted, it should be reflected in the app. I am unable to connect to FTP server and my app crashes. Below is the code of my app. Please have a look at the code and help me out.

FluentFTP: The remote certificate is invalid according to the validation procedure

故事扮演 提交于 2020-12-30 03:03:50
问题 When I try to connect to my FTP server to upload a file with FluentFTP I get this: The remote certificate is invalid according to the validation procedure. Yet FileZilla works fine with no error or warnings. Am I doing something wrong and if it's actually a problem with the server how can I ignore this error Here's my code: var credentials = new NetworkCredential(Username, Password); FtpClient client = new FtpClient(Host, credentials) { Port = Port, EncryptionMode = FtpEncryptionMode.Explicit

Downloaded images are missing bytes

可紊 提交于 2020-12-23 12:11:54
问题 My Android app (Java 8, min SDK 24, target SDK 27) downloads images from an FTP server, using Apache's FTPClient (version 3.6). There are a couple of smaller .jpg images (around 12kb each) that always download completely but all of the bigger .png images (8+ mb each) show up black in my app. The files on the server look fine, so I downloaded the images from the emulator: Windows' "Photo" app displays a black, horizontal bar at the bottom of all the affected images and they are all missing a

Downloaded images are missing bytes

筅森魡賤 提交于 2020-12-23 12:08:54
问题 My Android app (Java 8, min SDK 24, target SDK 27) downloads images from an FTP server, using Apache's FTPClient (version 3.6). There are a couple of smaller .jpg images (around 12kb each) that always download completely but all of the bigger .png images (8+ mb each) show up black in my app. The files on the server look fine, so I downloaded the images from the emulator: Windows' "Photo" app displays a black, horizontal bar at the bottom of all the affected images and they are all missing a