Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Downloaded files get corrupted
Mohit Kapoor
7y
272
1
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();
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
WordPress integration with ASP.NET
unable to access data assigned you a usercontrol uing web ct