Greetings folks.
I have this weird problem. In the project I'm working on now, I need to upload a file to a FTP site. I have written many programs that do this ... |
I am trying to save text file on ftp server which is in my drive and it has data, the file is successfully stored there, but the file is completely empty ... |
How to scan network directories / or a FTP server and alert me via email each day saying what new files have been upload to the server?
I have about 20+ directories ... |
I regularly upload files to a particular RedHat 5.5 Server with no problems using FileZilla.
I am now trying to FTP to the same server with the Java Library org.apache.commons.net.ftp.FTPClient while ... |
|
Originally posted by Carl Trusiak: I'm not sure where your problem could be. I've used the same thing Sun's FtpClient, BufferOutputStream and successfully sent files as small as 64 bytes. Post a code example and we'll see if we can help. Here is the code, please let me know whats wrong with this code. package com.eai.mm.builder; import sun.net.ftp.*; import sun.net.*; import ... |
Hi guys I am trying to download JPG and XML files from my FTP server...using down code .... import java.io.*; import java.util.*; import com.oroinc.net.ftp.*; import com.oroinc.net.*; public class IMG_ejbLOAD_IMGBean implements javax.ejb.SessionBean { private javax.ejb.SessionContext mySessionCtx; static String server = "192.168.1.129"; static int port = 21; static String id = "jkreddy"; static String password= "jkreddy"; FTPClient ftpClient = new FTPClient(); public boolean ... |
|
Hi Ulf, Thanks a lot for your reply.Now I got the directory names like the below from the remote unix box: drwxrwxrwx 2 bslops1 dstage 512 Sep 26 13:26 cmdb drwxrwxrwx 2 bslops1 dstage 1024 Sep 21 12:27 hydqdw drwxrwxrwx 2 bslops1 dstage 1024 Sep 26 13:46 hydstg But I want only directory names.Please tell me how to get it. THANK ... |
Thanks for your reply, just one more thing I am transfering file from Linux to Linux using FTP.The linux servers are under the same network. Using library org.apache.commons.net.* ; FTPClient ftpClient = new FTPClient(); If I do not set the ftpClient.setSoTimeout(); would it still be ok? And is there potential problems if I do not set it at all? |
Hi I am using org.apache.commons.net.ftp to send a file to a FTP server, the program runs fine to many different servers and with many different file types and sizes. I have one server though that I can send the file to but it never leaves the .storeFile method. I can view and open the file on the remote server. It is ... |
|
Hi, I am using org.apache.commons.net.ftp and have the following in my path: commons-net-1.4.1.jar jakarta-oro-2.0.8.jar My FTP server is on unix. Here is what I get when giving a command quote SYST on a windows command promt after connecting to the FTP Server output 215 ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313) I have an application that downloads the files ... |
Hi, I am using jdk1.4. I want to use org.apache.commons.net.ftp for uploading files to my server. I am using jakarta-oro-2.0.8.jar and commons-net-1.4.0.jars Below is the code snippet: .... FTPClient ftp = new FTPClient(); ftp.connect(serverName); ftp.login(userName, password); ftp.storeFile(serverName,in); ... after executing the file I get error at line FTPClient ftp = new FTPClient(); as : java.lang.UnsupportedClassVersionError: org/apache/commons/net/ftp/FTPClient (Unsupported major.minor version 49.0) java.lang.ClassLoader.defineClass0(Native ... |
|
thank you for the reply. Joe, before coming to this forum i googled for this problem...but could not get any answer to solve this problem.. So I thought i might get some answer here... I would like to elaborate the problem... I am trying to retrieve a zip file from FTP server and the size of zip file is apx 67MB. ... |
Greetings folks. I have this weird problem. In the project I'm working on now, I need to upload a file to a FTP site. I have written many programs that do this before and they have worked just fine. But this particular site is giving me trouble. When I try to upload the file from the program, I get this to ... |
Hi, I'm trying to bulid a FTP File Upload with JavaFX. Therefor I need a library to (obviously) do FTP and give feedback of how many bytes have already been transfered (to show it in a progress bar). I found edtftpj library, which seemed to work well, but it was just impossible to get the progressbar on the frontend refreshed while ... |
Hi, I've got a problem while accesing file's date in a remote server. The thing is, my pc hour is 6 hours less than the server's one, but if I try to get a recently created file's date it gives me this: Wed Nov 11 00:00:00 GMT-03:00 2009 I guess this is because the file's timestamp is greater than my pc's ... |
I am FTPing using the library "org.apache.commons.net.ftp" but its taking a lot of time, can anyone tell me that is there anything wrong with my code that is decreasing the transfer rate OR any other method for FTP in java? My Code is : localInputStream = new BufferedInputStream(new FileInputStream(filepath)); OutputStream remoteOutputStream = null; remoteOutputStream = ftp.storeFileStream(fileName); BufferedOutputStream bufferedRemoteOutputStream = new BufferedOutputStream(remoteOutputStream ... |
|
i'm really sorry. i didnot mean the process.exec. There is a way you can execute commands on the FTP server's shell. it is known as the site command. I just checked the APIs for commons net and it looks like there is sendSiteCommand(args) which achieves the same. I apologize for the misleading post. Try if this works. |
Is "/prod/inx/logs/fe" an absolute directory on the server or is it relative to the root directory configured for the FTP user you are logging on with. Many (most?) FTP servers only allow you to access sub-directories of some user dependent root directory. The chances are that if "/prod/inx/logs/fe" is an absolute directory then it won't allow you access and you will ... |
Hi All I have a web app which allows a user to upload a file, this works fine using the apache.commons fileUpload feature. Now I have it on the same server as my webapp. The next stage is to move it from the webapps server to another server. I have been doing it via apache.commons.net.ftp but this isn't feasible now, because ... |
|
|
hi thanq, but actually the prob is I developed a small module using sun.net.ftp package a few days back. At that time I gone thru this api documentation in google and completed my work. But now the req.is to determine the size of file. Now I cant rework on the whole module using another package. I didnt understand why this time ... |
|