One thing to look out for though is that allot of people where
complaining that the zip was corrupted becuase for some reason the
stream was being cut short.
I sorted the problem by getting the ADO.Stream in smaller chuncks using the following code:-
'Send zip to browser
Do Until objADOStream.EOS
'Make sure browser is connected
If Response.IsClientConnected Then
'Write the ado stream in small scable chunks
Response.BinaryWrite objADOStream.Read(100000)
'If buffer is done empty
If Response.Buffer Then
Response.Flush
End If
Else
Exit Do
End If
Loop |