我无法在我的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");