Amir Mirkamali

امیر میرکمالی

Which Content-Type you must set for binary stream, to download when using Response.Binarywrite

Response.ContentType = "application/force-download";

Response.AddHeader("Content-Disposition", "attachment;filename=\"" + Filename + "\"");

Response.BinaryWrite(yourbuffer);

Response.End();

Comments are closed