HTTP (Web サービスではない) 経由でストリーミングされる XML を GZIP しようとしています。
if (ZipOutput)
{
output = new GZipStream(Context.Response.OutputStream, CompressionMode.Compress);
Context.Response.AppendHeader("Content-Encoding", "gzip");
}
else
{
output = Context.Response.OutputStream;
}
EscapeXMLTextWriter xmlWriter = new EscapeXMLTextWriter(output, new UTF8Encoding())
{
Formatting = Formatting.Indented
};
ZipOutput
ですtrue
が、応答は圧縮されていないようです。ポインタ、代替手法はありますか?
を使用できることはわかっていますが、フレームワークでクラスSharpZipLib
を使用したかったのです。GZipStream