hi,
i wish to know how to download a file in .net.And also explain Response.Transmit()
thank you
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna GaradRank #191 · 12.8K reputationPosted Mar 23, 2011, 4:26 AM EDT
Response.ClearContent();
Response.AddHeader("Content-Disposition", "attachment; filename=");
BinaryWriter bw = new BinaryWriter(Response.OutputStream);
bw.Write(fileData);
bw.Close();
Response.ContentType = ".wav";
Response.End();
krithika muthukrishnanRank #8,369 · 223 reputationPosted Mar 23, 2011, 4:49 AM EDT
i download the file but when i want to see the content, the error
word cannot start the converter mswrd632 error will occur how can i solve this
Andrew FensterRank #983 · 2K reputationPosted Mar 23, 2011, 6:51 AM EDT
http://www.c-sharpcorner.com/UploadFile/afenster/5725/?ArticleID=ff6e9173-ab0a-4404-84be-b7e64fef3bf0
As the article shows, there's more than one way to download. Here's how to do it using Response.Transmit, which you asked about:
Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "attachment; filename=MyFile.pdf");
Response.TransmitFile(Server.MapPath("~/Files/MyFile.pdf"));
Response.End();
As for your "cannot start the converter mswrd632" error, I ran into this once, and this article helped me fix it:
http://helpdeskgeek.com/office-tips/word-cannot-start-the-converter-mswrd632-wpc/