Downloading huge files? (Over 1 GB) - WeOnlyDo Discussion board

Downloading huge files? (Over 1 GB) (General questions)

by cyman, Friday, April 09, 2010, 20:20 (5341 days ago)

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: