Given an array of bytes containing the file data, a MIME type, and a file name:
public void DownloadBytes( byte[] bytes, string mimeType, string fileName ){ Response.ContentType = mimeType; Response.AppendHeader( "Content-Disposition", "attachment;filename=" + fileName ); Response.BinaryWrite( bytes ); Response.Flush(); Response.End();}
Remember Me
a@href@title, i, strike, u
Copyright © 2003-2008 Falafel Software Inc.
Subscribe to Falafel Blogs
The opinions expressed herein are Falafel's employees own personal opinions and do not represent Falafel Software's view in any way in case they go bananas!