我我正在做一个项目,上传文件,不用上传控件, FileUpload对文件有大小限制
 我向用流的形式上传文件怎么做。 在网上找了段代码   
        string url = @"http://localhost:1141/UpLoad/1.jpg";
        string file = @"C:\Documents and Settings\Administrator\My Documents\My Pictures\000.jpg";        /// <summary>
        /// 上传文件方法
        /// </summary>
        /// <param name="uriString"></param>
        /// <param name="fileName">上传文件的文件名称</param>
        public static void UpdataFile(string uriString, string fileName)
        {
            WebClient myWebClient = new WebClient();
            FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
            BinaryReader br = new BinaryReader(fs);
            Byte[] postArray = br.ReadBytes(Convert.ToInt32(fs.Length));            Stream postStream = myWebClient.OpenWrite(uriString, "PUT");
            if (postStream.CanWrite)
            { 
                postStream.Write(postArray, 0, postArray.Length);
            } 
            postStream.Close(); 
            fs.Close();
        }       我是在本机上运行,报错远程服务器返回错误: (404) 未找到。       不知道错在哪里? 也不知道怎样用文件流的形式上传文件?       我是在Web上实现上传文件!