0 votes

with

EfficySession s = new EfficySession(...)
var dt = s.ExecuteSQLQuery("select * from ArdisICT.FILES WHERE K_TABLE=31000 AND K_1=:param1", 1, true, p2);
foreach (DataRow r in dt.Rows)
{
   string fname = r["PATH"].ToString();
   string streamv = r["STREAM"].ToString();
   byte[] bytes = s.ConvertFromBase64Attachment(streamv);
}

In bytes I get the zlib compressed data, but how can I get the right decompressed data?

Or can I use soap method similar to Efficy.getFileStream ?

asked in SOAP by (125 points)

2 Answers

0 votes

The stream contains a ZLib encrypted file, with a prefix of 8 characters (#1#2'ZLib'#3#4).
You can remove the first 8 characters and then it should decompress with ZLib.NET.

answered by (1.2k points)
0 votes
answered by (7.3k points)
1,231 questions
1,500 answers
1,835 comments
328 users