Hey all, this issue has come back to bite me in the ass.
Response.WriteFile works in Mono/Debian just like it does on Win2k/.NET It spools the file into RAM before feeding it out to the client. Response.TransmitFile is supposed to perform the same action as if you use Response.Redirect or Server.Transfer without restarting the page processing. Anyone have any ideas on how to protect *.zip, *.wmv and *.jpg files behind an apache server with mono/mod_mono? Thanks. MDM On Tue, 2005-06-14 at 15:54 -0700, Joe Audette wrote: > Why not use Response.WriteFile? > > I use it in mono and it works great. > > Joe > > --- Marc DM <[EMAIL PROTECTED]> wrote: > > > > > Would it be possible for a future release of mono to > > include the > > unpopular method of the HttpResponse object named > > TransmitFile > > > > Microsoft implemented this method as a solution to > > HttpResponse.BinaryWrite spooling the entire file > > into RAM before > > sending it to the web-user. (see KB article link > > below) > > > > I did a google search for "mono > > Request.TransmitFile" (without the > > quotes) and got 1 english result. > > The method isn't documented in MSDN but I found this > > on Microsoft's > > site : > > (from > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;823409) > > > > > > > You can use the function instead of the > > BinaryWrite function or > > > instead of other functions to send files to the > > client. Also, this > > > function can be used regardless of the size of the > > file that you want > > > to transmit. > > > > I also found this blog entry explaining its > > functionality (a bit) > > > http://www.aaronweiker.com/PermaLink,guid,2e9e9d7f-4130-41f7-8104-171f3ece37d4.aspx > > > > I need this method to compile some code I'm moving > > from .NET to mono. > > I suspect that I'll have to find another way around > > this one. > > > > Has anybody got any ideas? > > > > Thanks in advance, > > > > Marc DM > > > _______________________________________________ > > Mono-list maillist - [email protected] > > http://lists.ximian.com/mailman/listinfo/mono-list > > > > > joe_audette [at] yahoo dotcom > http://www.joeaudette.com > http://www.mojoportal.com > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
