R
rodchar
hey all,
is the commented lines essentially the same as the ones not commented?
context.Response.Clear();
context.Response.ClearHeaders();
context.Response.ClearContent();
context.Response.ContentType = @"application/pdf";
//context.Response.AddHeader("content-disposition",
String.Format("inline; filename={0}.pdf", adNumber));
context.Response.AddHeader("content-disposition",
String.Format("attachment; filename={0}.pdf", adNumber));
context.Response.WriteFile(path);
//byte[] image = new byte[fileInfo.Length];
//using (BinaryReader reader = new BinaryReader(new
FileStream(path, FileMode.Open, FileAccess.Read)))
//{
// image = reader.ReadBytes((int)fileInfo.Length);
//}
//context.Response.BinaryWrite(image);
//context.Response.Flush();
//context.Response.Close();
//context.Response.End();
thanks,
rodchar
is the commented lines essentially the same as the ones not commented?
context.Response.Clear();
context.Response.ClearHeaders();
context.Response.ClearContent();
context.Response.ContentType = @"application/pdf";
//context.Response.AddHeader("content-disposition",
String.Format("inline; filename={0}.pdf", adNumber));
context.Response.AddHeader("content-disposition",
String.Format("attachment; filename={0}.pdf", adNumber));
context.Response.WriteFile(path);
//byte[] image = new byte[fileInfo.Length];
//using (BinaryReader reader = new BinaryReader(new
FileStream(path, FileMode.Open, FileAccess.Read)))
//{
// image = reader.ReadBytes((int)fileInfo.Length);
//}
//context.Response.BinaryWrite(image);
//context.Response.Flush();
//context.Response.Close();
//context.Response.End();
thanks,
rodchar