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.

Re: Downloading huge files? (Over 1 GB)

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

Forgot to mention... The downloading DOES work, however, it takes like 10 mins to process the file before the download begins, where the user is just waiting.

Re: Downloading huge files? (Over 1 GB)

by wodDamir, Friday, April 09, 2010, 22:28 (5341 days ago) @ cyman

Simon,

Sorry for a slower response. I was trying to duplicate this, but was unsuccessful.

Is there any chance you could perhaps send us a sample that we could run on our side to duplicate immediately?

Regards,
Damba