S
- Steve -
Is there a problem with this code?
string filePath = @"\\filer\backup$\filex\" + myFileID;
Response.Clear();
Response.ContentType = (string)myDataReader["ContentType"];
Response.AddHeader("Content-Disposition",
"attachment; filename=\"" + (string)myDataReader["FileName"] + "\"");
Response.AddHeader(
"Content-Length", (string)myDataReader["FileSize"]);
Response.Flush();
Response.WriteFile(filePath);
With a certain file it stops at 35% or 4.5mb of ~13mb of the file. I can't
figure out what I'm doing wrong espcically since it almost always works.
string filePath = @"\\filer\backup$\filex\" + myFileID;
Response.Clear();
Response.ContentType = (string)myDataReader["ContentType"];
Response.AddHeader("Content-Disposition",
"attachment; filename=\"" + (string)myDataReader["FileName"] + "\"");
Response.AddHeader(
"Content-Length", (string)myDataReader["FileSize"]);
Response.Flush();
Response.WriteFile(filePath);
With a certain file it stops at 35% or 4.5mb of ~13mb of the file. I can't
figure out what I'm doing wrong espcically since it almost always works.