• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 769
  • Last Modified:

Inet.Execute vs Inet.OpenURL

Hi,

What's the difference between the 2 above functions?
I need to use one of it in my ActiveX control to retreive some binary files (file size can variy from few hundred kbytes to few megabytes) across the intranet. which one is more advisable to use?

Thanks in advance!!
0
totoro030898
Asked:
totoro030898
  • 2
1 Solution
 
clifABBCommented:
b() = Inet1.OpenURL(strURL, icByteArray)
OpenURL both opens and returns the contents of the internet address.  If you want to save this to a file, you would have to do that in a seperate step.  This is generally used for small files and generally to display the comtents of text files.

Inet1.Execute txtURL.Text, "GET GetThis.txt C:\MyDocuments\GotThis.txt"
Is true FTP file transfer.  This allows you to retrieve a file from the internet and save it directly to your disk.
0
 
totoro030898Author Commented:
hi, for Inet.Execute, does that mean if i'm getting a file from a server that does not support FTP but only HTTP, i will fail ?
0
 
clifABBCommented:
I believe this is true, although I have no information on it.  You might want to try it to see.

Thanks.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now