Jump to content
Xtreme .Net Talk

How to download a file in .NET using iNET control?


Recommended Posts

Guest _RIP_DREAMS
Posted
how do i download a file...? it's a image...
Posted

Dim bImage() As Byte

' get the binary data
bImage = Inet1.OpenURL("URL")

' save it to file
Open "c:\windows\desktop\temp_image.dat" For Binary As #1
 Put #1, , bImage
Close #1

That works in VB6, but it should be the same (or very similar) for .NET (I hope :))

Guest _RIP_DREAMS
Posted
nop vb.net doesnt support that otherwise i could have done that easely...
Guest _RIP_DREAMS
Posted
yes i used it but i am having several problems with it... :(
  • *Gurus*
Posted

Don't use it. There are new methods to do what you achieve in .NET, and you do not get a license to use that control with the .NET framework.

 

Try checking out the HttpRequest and HttpResponse classes, or possibly the System.Net.Sockets namespace if you'd rather do it manually.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...