Starter.Ftp.Initialize("FTP", "192.168.1.240", 21, "zz", "zz")
Starter.Ftp.PassiveMode = True
Starter.Ftp.UseSSL = False
Starter.Ftp.UseSSLExplicit = False
Dim sf As Object = Starter.Ftp.UploadFile(File.Dirinternal, "temp.jpg", False, "/temp.jpg")
'occurs here - java.net.SocketException: Connection reset
Wait For (sf) FTP_UploadCompleted (ServerPath As String, Success As Boolean)
Starter.Ftp.Close