| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: STORE Problem |
| Shubha spandit@iso.com From: Jersey City, NJ USA Posts: 11 Member Since: 03/10/04 |
posted March 25, 2004 7:05 AM I am trying to transfer Zip file from the server to FTP site. It is just transfering the file path and not the actual data. I also checeked the local file does exist in the server local drive. oFTP.Type = ftpAscii oFTP.Store remote_file, local_zip_file |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 25, 2004 7:19 AM I don't know what you mean by "It is just transfering the file path and not the actual data", but I can tell you that a zip file is a binary file so you would want to use the type ftpImage, not ftpAscii. |
| Shubha spandit@iso.com From: Jersey City, NJ USA Posts: 11 Member Since: 03/10/04 |
posted March 25, 2004 7:36 AM I mean the file name is getting transefered than the actual data in the file. For example - when I open the remote file in FTP site it shows - "C:\Claimsearch\iso_pdf_rpts\HTML2PDF\A001\20040324\ISOREP20040324\ISOREP20040324_A001.ZIP" rather than the data in the zip file. Also, I tried with type= ftpImage and it did not work. But Your sample ListView (FTP Tool) works with no problem. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 25, 2004 8:46 AM That means that we could not find "local_zip_file" on your system. If the file does not exist then we use the string that you passed in as the data. Try adding this code prior to the call to store: If Dir(local_zip_file, vbNormal) = "" Then MsgBox local_zip_file + " does not exist!", vbCritical, "File not found" End If |
| Shubha spandit@iso.com From: Jersey City, NJ USA Posts: 11 Member Since: 03/10/04 |
posted March 25, 2004 9:37 AM I am getting Error number 52 Error description - Bad file name or number. I think somehow the Local_zip_file is getting surrounded by double quotes (though I am not putting it). I am trying to use replace command and see if it works. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|