Author: shaodongjia | Posted on: 11/26/2008 4:54:29 PM | Views : 437

My code:
          string xpdlpath = Server.MapPath("");
          string strFile = xpdlpath.Substring(0, xpdlpath.Length - 7) + "/upload/clients/" + Request["file"];
          FileStream fs = new FileStream(strFile, FileMode.Open);
          byte[] bytes = new byte[(int)fs.Length];
          fs.Read(bytes, 0, bytes.Length);
          fs.Close();
          Response.Clear();
          Response.ClearHeaders();
          Response.Charset = "GB2312";
         ...

Go to the complete details ...