User2126297882 posted
I created a website for my users to go to and download updates for one of our pocket pc applications, but for some reason only ~8kb of the 1.2Mb .CAB file will download to the pocket pc. It works fine when accessing the site through a standard
browser like IE6 or Firefox, so I don't think it's a problem with the sites configuration (ie executionTimeout, maxRequestLength). Also, if I directly access the virutal directory and download the file, instead of going through the site, it downloads
fine, so it doesn't appear to be an issue with the files themselves. Anyone have any ideas??
This is the code snippet I am using to write the file:
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader(
"Content-Disposition", _
"attachment; filename=""" & filename &
"""")
Response.WriteFile(filepath)
Response.Flush()