download binary file from website

  • Thread starter Thread starter Loane Sharp
  • Start date Start date
L

Loane Sharp

Hi there

I'm new to VB.NET programming and really programming in general.

I have a small binary file on my website that I want to download
programmatically onto my local hard drive.

I can locate the file on my website using (System.Net. namespace) ...

Dim uri As New Uri(<web address goes here>)
Dim req As WebRequest = WebRequest.Create(uri)
Dim resp As WebResponse = req.GetResponse().

Is there a simple way to download this file to my hard drive?

Please help
Best regards
Loane
 
p.s. for instance, how would I copy a .gif file from my website to my local
hard drive programatically?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top