Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Corrupting .csv file

Status
Not open for further replies.

DevelopV

Technical User
Mar 16, 2012
113
ZA
I am downloading .csv files from the Internet using FTP (VBA Code). The FTP code can be viewed here:
http://tek-tips.com/viewthread.cfm?qid=1703957

The file is getting corrupt during the transfer!
The file on the ftp server looks like this:
CustomerID,CustomerName,PhysicalAddress1,PhysicalAddress2,PhysicalAddress3,PhysicalAreaId,CustomerStatusId,TradePrice,Telephone
2099395,"Donald’s Hair Salon","55 Talana Road",,Claremont,256,1,0,0217970028

The file on my PC looks like this:
CustomerID,CustomerName,PhysicalAddress1,PhysicalAddress2,PhysicalAddress3,PhysicalAreaId,CustomerStatusId,TradePrice,Telephone
2099395,"Donald’s Hair Salon","55 Talana Road",,Claremont,256,1,0,0217970028d,TradePrice,Telephone
2099395,"Donald’s Hair Salon","55 Talana Road",,Claremont,256,1,0,02179

I am downloading the file as "ASCII"

What can cause this?

BTW if I transfer the file using FileZilla the downloaded file is the same as the original
 
Did you try to download as BINARY ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
(by which I mean that it is a shame that the shell-based FTP solution didn't work for you)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top