我無法在我的C#ASP.NET 4.5應用程序中使用GZipStream類。 我得到的錯誤: The type or namespace name 'GZipStream' could not be found (are you missing a using directive or an assembly reference?) 我試着用using System.IO;但System.IO.C
我有一個壓縮的gzipstream,我想將它寫入文件。現在問題是壓縮的gzipstream上不支持讀取。下面是我的代碼,其中gzipstream從memorystream中讀取stream,然後我想將它寫入filestream。 using (var stream = new MemoryStream())
{
using (FileStream file = new FileStre
我正嘗試使用ssh.net庫將壓縮的GZipStream上傳到sftp服務器。問題是,當我創建GZipStream時,無法再讀取它。下面是我的代碼: using (SftpClient client = new SftpClient(connectionInfo))
{
client.Connect();
client.ChangeDirectory("/upload");