Hi Natty~ Here is the code I use to send out the request. I chunk it out
as well. Sorry, it's in vb.net, forced to program w/ this god awful syntax
right now. CHUNK_SIZE is 16384. thx~ PJ
Dim br As New BinaryReader(fs )
Dim offset As Long
Response.Clear( )
Response.Buffer Output = False
Response.Buffer = False
Response.Conten tType = "applicatio n/octet-stream"
Response.AddHea der("Content-Disposition", "attachment ; filename=" +
fileName)
Response.AddHea der("Content-Length", fs.Length.ToStr ing())
Response.Flush( )
Dim totalSize As Long = fs.Length
Dim size As Long
Do
If offset + CHUNK_SIZE > totalSize Then
size = totalSize - offset
Else
size = CHUNK_SIZE
End If
If Not Response.IsClie ntConnected Then
Exit Do
End If
Response.Binary Write(br.ReadBy tes(Convert.ToI nt32(size)))
fs.Flush()
Response.Flush( )
offset += size
Loop Until offset >= totalSize
fs.Close()
br.Close()
Response.Close( )
"Natty Gur" <na***@dao2com. com> wrote in message
news:eI******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi,
Can you tell in more details how you send the file? I'm sending Zip
files from the server to the client and I don't get this behavior. I set
the buffer to off and I'm sending chunks of the file to the client.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!