problem to download file.

Posted by Abhi_patil under ASP.NET on 6/9/2010 | Views : 1076 | Status : [Member] | Replies : 1
I am having code to download sis file on my web page.

when i download .sis file on PC it successfully and correctly downloaded .sis file.
But when i try to download that .sis file on mobile then it's not downloading complete .sis file.

////here is my code..

DownloadName = "MySISFile.sis";
FileInfo file = new FileInfo(Path);
if (file.Exists)
{
Response.Clear();
if (DownloadName.EndsWith(".sisx") || DownloadName.EndsWith(".sis"))
{
Response.Clear();
Response.ContentType = (DownloadName.EndsWith(".sisx") ? "x-epoc/x-sisx-app" : "application/vnd.symbian.install");
Response.AddHeader("Content-Disposition", "attachment; filename=" + file);
}
else
{
Response.ContentType = "application/octet-stream";
}
Response.WriteFile(file.FullName);




Responses

Posted by: Vuyiswamb on: 6/25/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
What Error are you getting ?

Thank you for posting at Dotnetfunda
[Administrator]

Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response