问题描述:在项目中需要将文件压缩然后传输给三方进行彩信发送,使用SharpZipLib 进行压缩,原先使用J#进行压缩处理,但是用SharpZipLib压缩后的zip文件传输过去之后,总会报发送失败.最后在加入 s.UseZip64 = UseZip64.Off;这一句话后,解决问题.特此记录. using (ZipOutputStream s = new ZipOutputStream(File.Create(argZipPath))) { s.UseZip64 = UseZip64.Off;…
目前很多网站默认采用GZip压缩,如果不进行解压缩,下载后生成的html页面打开后会出现中文乱码 乱码前: string url = "http://quote.eastmoney.com/stocklist.html"; using (var client = new HttpClient()) { client.BaseAddress = new Uri(url); var response = client.GetAsync(url).Result; var content =…