string fileExtension=context.Request.Url.LocalPath;
  context.Response.Expires = 0;
  context.Response.Clear();
  switch (fileExtension)   {   case ".mp3":                              context.Response.ContentType = "audio/mpeg3";  break;   case "mpeg":  context.Response.ContentType = "video/mpeg";  break;                        default:                       context.Response.ContentType = "application/octet-stream";   break;   }
  //context.Response.ContentType="image/jpeg";
  string filePath = context.Server.MapPath(context.Request.Url.LocalPath);
  context.Response.WriteFile(filePath);
  context.Response.End();