views:

57

answers:

0

I have a ASP.net MVC webpage, that has a custom document repository in it. The document are stored in a Sql Server 2008 Filestream Filegroup. I am using LINQ to SQL to access the database, then doing a Response.BinaryWrite() to download the file.

This works fine, except when the file is big. If the file is big, I am getting a System Out Of Memory on the web server. Is there any way the get the Filestream's binary data down in chunks, instead of all at once?