MikeLacey<br>
the code below is in the inet1_Statechanged event. Can you take a look at it.<br>
private sub Inet1_StateChanged(Byval State as Integer)<br>
Dim bDone As Boolean<br>
Dim vByte() As Byte<br>
Dim bytAppend() As Byte<br>
Dim intFileNum As Integer<br>
<br>
select case <br>
case icError<br>
case icResponseCompleted<br>
vByte() = Inet1.GetChunk(1024, icByteArray)<br>
DoEvents<br>
<br>
Do While Not bDone<br>
'bytAppend = vByte<br>
vByte() = Inet1.GetChunk(1024, icByteArray)<br>
DoEvents<br>
<br>
If UBound(vByte()) = 0 Then<br>
bDone = True<br>
End If<br>
Loop<br>
intFileNum = FreeFile<br>
Open (Trim$(strDownloadFile)) For Binary As #intFileNum<br>
Put #intFileNum, , vByte()<br>
Close #intFileNum<br>
end select<br>
end sub