Page 1 of 1

IO Exception when querying Clickhouse DB through ODBC

Posted: Mon Oct 20, 2025 9:03 am
by brainpostman
Greetings.

I have set up a ClickHouse connection through ODBC as described in this thread:
https://forum.stimulsoft.ru/viewtopic.php?t=11839

Connection is successful, however for whatever reason, most queries fail with the following exception:

Code: Select all

System.IO.InvalidDataException: The archive entry was compressed using an unsupported compression method.
   at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
   at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
   at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
   at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
   at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
   at Stimulsoft.Base.StiGZipHelper.Unpack(Byte[] bytes)
   at Stimulsoft.Report.Web.StiRequestParamsHelper.Get(HttpContext httpContext)
   at Stimulsoft.Report.Mvc.StiNetCoreDesigner.GetRequestParams(HttpContext httpContext)
   at Controllers.ReportsController.DesignerEvent() in /src/Modules/Reports/Controllers/ReportsController.cs:line 346
Some queries succeed and data is loaded.

I am using Version 2023.2.2 from 5 April 2023, .NET 6.0.

Can this be fixed? Is the problem with the Stimulsoft library, .NET or with my compiled driver?

Re: IO Exception when querying Clickhouse DB through ODBC

Posted: Mon Oct 20, 2025 8:48 pm
by Lech Kulikowski
Hello,

Please try to use the ClickHouse connection.

Thank you.