473,796 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help in Inet controls

4 New Member
i have an Runtime error for occuring at the time of downloading from the site
the error will cause " Unable to complete your request" when i was running the application.her e mainly downloading files more then 500MB from the site..
This my coding


function start here--------------*-----------------
Dim Size As Long, Remaining As Long, FFile As Integer, Chunk() As Byte
Dim loginString As String
' Dim Max As Long
Dim Max As Double
m_lngDocSize = 0

Inet1.Execute "http://www.eximalert.c om/Test/" & File, "GET"


Do While Inet1.StillExec uting
DoEvents
Loop
Size = CLng(Inet1.GetH eader("Content-Length"))
Remaining = Size
FFile = FreeFile
Open App.Path & "\" & File For Binary Access Write As #FFile
Do Until Remaining = 0
Form1.Height = 2955
ProgressBar1.Vi sible = True
If Remaining > 1024 Then
Chunk = Inet1.GetChunk( 1024, icByteArray)
Remaining = Remaining - 1024
If ProgressBar1.Va lue < 100 Then
ProgressBar1.Va lue = ProgressBar1.Va lue + 1
End If
Else
Chunk = Inet1.GetChunk( Remaining, icByteArray)
Remaining = 0
End If

Put #FFile, , Chunk

Loop

Close #FFile
ProgressBar1.Va lue = ProgressBar1.Ma x

If unzipAlert(File ) = True Then
Updated = True
End If

End Function
Aug 16 '07 #1
0 1009

Sign in to post your reply or Sign up for a free account.

Similar topics

2
6081
by: Laphan | last post by:
Hi All Just wanted to know if anybody knows the answer to the following quick queries: 1) The reason I'm using VB's INET control is to download copies of Ms Access DBs on a range of web sites so that I have a backup. Found out from my ISP that if my DBs go up the spout then it's down to me to restore - gulp!!! I've created a little FTP gizmo where I could download web pages OK, but not
0
4964
by: dartszeeland.tk | last post by:
Hi, i want to upload a file from my computer to a ftp..... this is the code: Inet.RemoteHost = "localhost" '(not ftp:// in front of it) Inet.RemotePort = "21" Inet.UserName = "user" Inet.Password = "password"
4
8376
by: Steen Gellett | last post by:
Hallo.....I have programmed with winsock for a while, but now I have set my eyes on Inet, but I'm totally blank........a few questions ?? Inet1.Protocol = icFTP......................I can see what this is Inet1.RemotePort = Text4.Text......... Whats the use ?? Inet1.URL = Text1.Text....................Can this be an IP adresse Inet1.UserName = Text2.Text........... I guess thats to connect to FTP Inet1.Password = Text3.Text............ I...
4
13893
by: S.W. Rasmussen | last post by:
I have tried several times to get inet.execute to download a file with the icHTTP protocol without much success so far. I execute: Inet.Execute "http://www.domain/myfolder/myfile.file", "GET" monitor the progress in Inet_StateChanged(ByVal State ByVal Integer)
0
5421
by: Pius | last post by:
Set Inet = Server.CreateObject("InetCtls.Inet.1") Inet.URL = "http://www.yahoo.com/" Inet.AccessType = icDirect Inet.Protocol = icHTTP Inet.RemotePort = 80 Inet.RequestTimeout = 60 response.write(Inet.ResponseCode) I got this piece of code from some forum on the web. The responsecode is supposed to return whether the connection is sucessful (ie. got a
2
2391
by: Dan | last post by:
I developed a website that posts data to another url via the Inet object. I should mention that the posting code is wrapped in a VB 6 dll, and that dll is called from ASP. Here's the ASP code: <% Dim objPostWrapper Set objPostWrapper = Server.CreateObject("MyDLL.PostWrapper")
2
1224
by: jm | last post by:
I am trying to do something VERY simple. I want to use this: http://www.codeproject.com/csharp/dotnetbandobjects.asp?msg=727553#xx714692xx to point to a web page. I cannot use process.start because it opens the webpage in the last opened IE window, not the window which is currently active. So, I am trying to use the Microsoft Internet Controls COM.
1
1673
by: HenryV1955 | last post by:
Hi people Can I use Inet controls to download multiple files at once using a wildcard char, similar to 'MGET' in FTP? thanks
0
2572
by: leoce7 | last post by:
I'm trying to write a macro in excel 2003 to use the "Microsoft Internet Control' reference library to access data from a web page. The problem is that it won't let me dimensionalize Inet controls even though I have added the reference ... i.e "Dim inet1 as Inet" is not allowed. Does anybody have any experience with Inet controls through excel?
2
5409
by: fredszky | last post by:
Hello I am very new to perl, however i managed to make this server/client work with udp, now i would like to do the same thing but with TCP/IP, what must i do? Server: #!perl -w # Server Program use IO::Socket::INET; print ">> Server Program <<\n";
0
10455
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.