2011-01-11 3 views
0

현재 파일 저장을위한 하드 코딩 된 경로를 제공하고 있지만 대화 상자를 열어 사용자가 드라이브에 파일을 저장할 위치를 얻도록 요청해야합니다.저장 대화 상자가 로컬로 파일을 다운로드/저장하는 동안 팝업되어야합니다.

내 클라이언트 코드는 다음과 같습니다

// Service1Client 클라이언트 = 새로운 Service1Client();

  client.Open(); 

      string s = client.GetData(5); 

      stream1 = client.GetFileStream("20101102.zip"); 

문자열 filePath = @ "c : \ Test \";

  outstream = File.Open(filePath, FileMode.Create, FileAccess.Write); 

      //CopyStream(stream1, outstream); 

      const int bufferLen = 10000000; 

      byte[] buffer = new byte[bufferLen]; 

      int count = 0; 

      int bytecount = 0; 

      while ((count = stream1.Read(buffer, 0, bufferLen)) > 0) 

      { 

       outstream.Write(buffer, 0, count); 

       bytecount += count; 

      } 

     } 

어떻게하면 일부 샘플 코드로이 기능을 얻을 수 있습니까?

미리 감사드립니다.

답변

0

클라이언트가 무엇입니까? WinForms 또는 다른 유형의 응용 프로그램에서 SaveFileDialog의 문제점은 무엇입니까?

관련 문제