File posting through FTP connection


 
Thread Tools Search this Thread
Special Forums IP Networking File posting through FTP connection
# 1  
Old 04-08-2008
File posting through FTP connection

Hi,
I am posting a file to a remote directory using FTP connect. Its a table that I am copying to an excel format, pasting that file to a server location and then taking that file from this location to copy it to the remote directoty location. The file gets copied successfully but while opening it "File is corrupt" message comes. I tried putting a test excel at the server location (thinking there might be any problem with the excel I am making out of the grid contents) but that is also not opening. If I copy a txt document that is opening. So some binary conversion related problem is there. Or any other information required. Pease let me know.
Thanks a lot,
Komal
# 2  
Old 04-08-2008
did you set the transfermode to "bin"? anyway maybe you better use "scp" to transfer files between servers... it's more secure Smilie
# 3  
Old 04-08-2008
Thanks a lot for your prompt reply.
I am using

ftp.setFileTransferMode(FTP.BINARY_FILE_TYPE);

where ftp is an :- FTPClient ftp = new FTPClient();

so the mode is binary..
Is there some problem with firewalls??
Please help..
# 4  
Old 04-08-2008
i don't know what you are doing? do you transfer files via script?
# 5  
Old 04-08-2008
FTPClient

Quote:
Originally Posted by komalkumar
Thanks a lot for your prompt reply.
I am using

ftp.setFileTransferMode(FTP.BINARY_FILE_TYPE);

where ftp is an :- FTPClient ftp = new FTPClient();

so the mode is binary..
Is there some problem with firewalls??
Please help..
hi

U can transfer file by using
# ftp ipno.
# bin
# mget filename
# mput filename
#bye

When u want open some file u need spl editors that could open only in Xwindow mode. Better use ftp as a file transfer only. For opening of files use telnet connection.

for user frndly we have gftp is available
#gftp
It will open a window to transfer files


pls tell me how to post a new Question in this forum. give the link or any button.
# 6  
Old 04-08-2008
I am using java. FTPClient() for connection to remote directory, login, storing file, logoff and then disconnect.
# 7  
Old 04-08-2008
Thanks Naresh.
I will try and let you know if it works.

After you complete the registration process, you can see a New Thread button at the start and end of the list stating the threads in the sub-heading.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP connection refused

Hi I am trying to execute a shell script which is in unix server gs1. The script is below which basically connects to another unix server q15 and tries to get a file using FTP . But i get error as "ftp: connect: Connection refused Not connected. Not connected." Please help with if the below... (8 Replies)
Discussion started by: samrat dutta
8 Replies

2. Debian

ftp connection refused

I have two computers running Debian 6.0 and one running Solaris 2.6 on a private network. The Debian computers can ftp to the Solaris computer but if a Debian computer is the destination the ftp connection is refused. I assume this is some security feature of Debian. What can I do to allow... (2 Replies)
Discussion started by: snorkack59
2 Replies

3. UNIX for Advanced & Expert Users

ftp connection refused

Hi- While trying ftp from AIX to Windows im getting below error. Can anyone share ur views on this topic. root@AB101# ftp -n 10.192.168.68 ftp: connect: A remote host refused an attempted connect operation. ftp> Thanks. (3 Replies)
Discussion started by: yanis
3 Replies

4. Shell Programming and Scripting

FTP Connection die out

Hi, I will ftp aroung 80 files after connecting to an FTP Server. But after 2 minutes of connection, it is timed out and connection is dying. Server had a 2 minute connection timeout if connection is idle. But my question, Isn't tranfering files not considered as an activity. Is the connection... (7 Replies)
Discussion started by: vasuarjula
7 Replies

5. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

6. UNIX for Dummies Questions & Answers

FTP Connection

Hi, Anyone encounter whereby when you FTP from an Unix server (Solaris 8) to another server (Window Server 2003), you tend to wait a long while when you do a "ls" and you get a timeout after that. However, when you FTP again and do a "ls", the result of "ls" shown immediately. All connection are... (5 Replies)
Discussion started by: ahlude
5 Replies

7. UNIX for Dummies Questions & Answers

ftp - Connection close

Hi Can someone help me what is the problem, when i try to login via ftp, though i entered the correct password, i got an error message Connection refused. please help. thanks (3 Replies)
Discussion started by: kaibiganmi
3 Replies

8. SCO

ftp connection

I have problem with ftp connection on SCO UNIX 5.0.7, it is work slowly. How I can make accelerate. (6 Replies)
Discussion started by: draganmi
6 Replies

9. Cybersecurity

FTP Connection

I just started a new job and inherited a Fedora core 3 server. I wanted to open the ftp ports and I wanted to verify this code before I mess things up. From my reading the two lines below should allow ftp access can anyone confirm my attempt. iptables -A INPUT -p tcp - sport 21 -m state - state... (0 Replies)
Discussion started by: mungaz
0 Replies

10. IP Networking

FTP connection problem

We have moved our DNS and DHCP to Windows 2000 from BIND. Our FTP Server is running Solaris 2.6, users who receive an i.p. address from win2k DHCP receives a connection failed error when trying to FTP and users who have static i.p. address can FTP with no problems. Can anyone shed light as to... (11 Replies)
Discussion started by: cassy
11 Replies
Login or Register to Ask a Question