Guest _RIP_DREAMS Posted July 16, 2002 Posted July 16, 2002 how do i download a file...? it's a image... Quote
ChiefRedBull Posted July 18, 2002 Posted July 18, 2002 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 :)) Quote
Guest _RIP_DREAMS Posted July 18, 2002 Posted July 18, 2002 nop vb.net doesnt support that otherwise i could have done that easely... Quote
*Gurus* Derek Stone Posted July 18, 2002 *Gurus* Posted July 18, 2002 You should not be using the Inet Control in .NET. There is absolutely no need for it. Look at the System.Web namespace instead. -CL Quote Posting Guidelines
Guest _RIP_DREAMS Posted July 19, 2002 Posted July 19, 2002 yes i used it but i am having several problems with it... :( Quote
*Gurus* divil Posted July 19, 2002 *Gurus* Posted July 19, 2002 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.