指Ftp吗??
看这儿:
http://www.codeproject.com/csharp/net_ftp_upload.asp?target=ftp

解决方案 »

  1.   

    FileStream fs = new FileStream(sbFilenameD.ToString(), FileMode.Open, FileAccess.Read); 
    BinaryReader fileReader = new BinaryReader(fs); 
    byte[] bytes = new byte[1024]; 
    int hasRead;  while((hasRead = fileReader.Read(bytes, 0, bytes.Length)) != 0) 

    tcpStream.Write(bytes, 0, hasRead);

    bytes = Encoding.ASCII.GetBytes("<EOF>");
    tcpStream.Write(bytes, 0, bytes.Length);
    fileReader.Close(); 这是发送的
      

  2.   

    FileStream fs = new FileStream(localFilename, FileMode.OpenOrCreate); 
    BinaryWriter w = new BinaryWriter(fs); 
    Byte[] read = new Byte[1024];
    int index;
    while( (bytes = tcpStream.Read(read, 0, read.Length)) != 0) //2

    if(bytes != 1024 && (index = Encoding.ASCII.GetString(read).IndexOf("<EOF>")) > -1 )
    {
    w.Write(read, 0, index); 
    break;
    } w.Write(read, 0, bytes); 
    read = new Byte[1024]; 


    w.Close(); 
    fs.Close();这是接受的都是从我的程序里直接拖出来的,所以有些变量名什么的定义在前面的,看不到
      

  3.   

    通过Socket,用数据流传大字节
      

  4.   

    haha,一切都已经搞定。就差最后的怎么把文件流输出成文件了。
    使用SaveFileDialog???
    怎么用呢,现在已有待变成文件的文件流fout.
    3ks!
      

  5.   

    DialogResult answer = saveFileDialog1.ShowDialog();
    if(answer!=DialogResult.Cancel)
    {
        saveFileDialog1.FileName;
    }
      

  6.   

    DialogResult answer = saveFileDialog1.ShowDialog();
    if(answer!=DialogResult.Cancel)
    {
        saveFileDialog1.FileName;//这里有些问题啊??
    }
      

  7.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=D8F961C3-CBC1-4591-143D-236B572EB89Fhttp://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=CDBAB4E8-0938-4134-B86F-3B9E2C396E8D