Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Downloaded files get corrupted
Mohit Kapoor
Mar 5 2017 11:14 AM
257
Reply
Files are successfully uploaded in the Local folder but while downloading files get corrupted (dosen't open)
File uploaded successfully !
Code to download(for image file):
Response.Clear();
Response.ContentType = "image/jpeg";
Response.AppendHeader("Content-Disposition", "filename=" + e.CommandArgument + " ");
string filename = e.CommandArgument.ToString();
Response.TransmitFile(Server.MapPath("~/admin/notices/") + filename);
Response.End();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
WordPress integration with ASP.NET
unable to access data assigned you a usercontrol uing web ct