• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 830
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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