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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfering a Binary file with Micro Inet1

Status
Not open for further replies.

JohnStep

Programmer
Apr 19, 2000
190
US
<br>&nbsp;I am trying to transfer a binary file using Inet1 and am having a heck of a time doing it. I have tried both examples from MSDN one with OpenURL and With the Get Command and neither seem to be working effectively. <br><br>&nbsp;&nbsp;Using the OpenURL method if I put an IP address instead of a URL I.E. :&nbsp;&nbsp;Inet1.OpenURL (&quot;111.111.111.1 c:\john.exe&quot; , icByteArray)<br><br>&nbsp;Is that the proper way to open the IP address and designate a location of the file with c:\john.exe???<br><br>&nbsp;Or with the FTP method can you use:<br><br>&nbsp;Inet1.Execute &quot;111.111.111.1&quot;, GET john.exe c:\john.exe<br><br>&nbsp;Then proceed do the Inet1_statechanged(ByVal State as Integer) sub correct?<br><br>&nbsp;For some reason it is not getting from the Server designated at 111.111.111.1&nbsp;&nbsp;Does the Server have to have the Inet1 control as well? I understood it did'nt need at as long as it was deginated the Correct IP address.<br><br>&nbsp;Any help would be appreciated...&nbsp;&nbsp;&nbsp;John Stephens
 
The INET control is based on a Client/Server architecture.&nbsp;&nbsp;You have the client part written, but you have to have the server side also.&nbsp;&nbsp;The server will usually run an FTP program that listens on port 21 for incomming connections from clients.&nbsp;&nbsp;The INTE control doesn't work like the Network Neighborhood where you can just copy a file.&nbsp;&nbsp;There has to be an application on the server side that will respond to your client application and process the request.<br><br>If you want to see if your client side application is working, try using your favorite browser to go out to <A HREF="ftp://ftp.microsoft.com" TARGET="_new">ftp.microsoft.com</A> and get a list of files.&nbsp;&nbsp;Then tell your control to get the file from the site with one of the filenames on the site.&nbsp;&nbsp;It should transfer it right down to your system.<br> <p>Steve Meier<br><a href=mailto:sdmeier@jcn1.com>sdmeier@jcn1.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top