Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

FTP Put VIs in the Internet Toolkit Create Empty Files

Primary Software: LabVIEW Toolkits>>Internet Developers Toolkit
Primary Software Version: 5.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
When I use the FTP Put File VI to upload a file to an FTP server, why does the file appear on the FTP server as an empty file with 0 bytes size? The VI does not report an error.


Solution:
You must send the passive command before you can upload files to an FTP server that does not allow anonymous logins but requires you specify a username and password. The passive command requests the FTP server to listen on a data port that is not the default data port and to wait for a connection instead of initiating one when it receives a transfer command.

Wire a FALSE constant to the active input of an FTP Put VI to send a passive command to an FTP server, as shown in the following image:



Related Links:
LabVIEW Support: Internet Toolkit Troubleshooting Wizard and FAQ
KnowledgeBase 2X0H94QJ: Does LabVIEW Support Secure Shell File Transfer Protocol Communication?
Products & Services: LabVIEW Internet Toolkit
Products & Services: LabVIEW Database Connectivity Toolkit
Products & Services: LabWindows/CVI Enterprise Connectivity Toolkit

 



Attachments:
ftp.JPG




Report Date: 12/04/2003
Last Updated: 04/24/2008
Document ID: 343F9H3N

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit