我目前正在尝试从WCF下载音频轨道,我需要帮助将其写入硬盘,如何配置streamwriter或其他方法在webApp中实现此操作?
// Use Service to download stream (returns System.IO.Stream)
Stream stream = MyService.Download(("1231"));
// ReadStream
StreamReader reader = new StreamReader(stream);
reader.ReadToEnd();
// Write this stream to a file/Hard disk
???