Downloading huge files? (Over 1 GB) (General questions)
Here's how I send a file to the user. The problem is that if the file is large, ex: 1 GB, then WodWebServer freezes, much in the same way the old version freezed with uploads.
u.Response.Headers.Add( Content-Type , application/octet-stream )
'PREVENT CACHING
u.Response.Headers.Add( Pragma , no-cache )
u.Response.Headers.Add( Cache-Control , no-cache )
u.Response.Headers.Add( Expires , -1 )
u.Response.StatusCode = WODWEBSERVERCOMLib.StatusCodes.OK
u.Response.Headers.Add( Content-Disposition , _
attachment; filename= & OriginalFileName & )
'fn is the path to a huge file over 1 GB.
u.Response.Filename = fn
Just wanted to say thanks again for the help with the uploading.
Complete thread:
- Downloading huge files? (Over 1 GB) - cyman, 2010-04-09, 20:20
- Re: Downloading huge files? (Over 1 GB) - cyman, 2010-04-09, 20:21
- Re: Downloading huge files? (Over 1 GB) - wodDamir, 2010-04-09, 22:28
- Re: Downloading huge files? (Over 1 GB) - cyman, 2010-04-09, 20:21