FTP Put a zip file that contains text files in Linux
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jennifer_Junio
Posted On:   Monday, September 12, 2011 01:27 PM

Hi all, I am transferring a file from a linux pc going to a windows ftp server using "ftp put". My file is a zip file that includes .txt files inside it. Here is what's happening when I transfered this file : 1. I used ftp put for transferring and found that my transferred zip file was corrupted and couldn't be opened on the ftp server. 2. I found the solution for this on the internet. I needed to use 'binary' to make it right. 3. I transferred again using binary and then ftp put the zip file onto the other end. Yes, it worked. My zip file wasn't corrupted anymore and I could already opened it on the ftp server. But the problem remains on the .txt files inside it. Converting th   More>>
			
Hi all,

I am transferring a file from a linux pc going to a windows ftp server using "ftp put".
My file is a zip file that includes .txt files inside it.

Here is what's happening when I transfered this file :
1. I used ftp put for transferring and found that my transferred zip file was corrupted and couldn't be opened on the ftp server.
2. I found the solution for this on the internet. I needed to use 'binary' to make it right.
3. I transferred again using binary and then ftp put the zip file onto the other end.
Yes, it worked. My zip file wasn't corrupted anymore and I could already opened it on the ftp server.
But the problem remains on the .txt files inside it. Converting the file into binary made my .txt files to be distorted and unreadable.
I read from the internet that .txt files need to use Ascii instead of Binary to be readable,
but if I use ascii it would cause my zip file to be corrupted again.

Is there any way to solve this? I need to successfully transfer a zip file that contains .txt files using ftp put.

Please help.
Thank you very much for any quick and kind response.
   <<Less
About | Sitemap | Contact